❄ Personal NixOS Flake Manager
nixos home-manager go nix
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(rui): pass impure through extra arguments

Fuwn e351e7fa e4939a72

+2 -19
+2 -19
rui.go
··· 80 80 Aliases: []string{"sw"}, 81 81 Flags: []cli.Flag{ 82 82 &cli.BoolFlag{ 83 - Name: "impure", 84 - Value: true, 85 - }, 86 - &cli.BoolFlag{ 87 83 Name: "force-home-manager", 88 84 }, 89 85 &cli.StringFlag{ ··· 92 88 }, 93 89 Action: func(c *cli.Context) error { 94 90 nh, err := exec.LookPath("nh") 95 - extraArgs := []string{} 91 + extraArgs := c.Args().Slice() 96 92 97 93 if err := notify("Queued home switch"); err != nil { 98 94 return err 99 - } 100 - 101 - if c.Bool("impure") { 102 - extraArgs = []string{"--impure"} 103 95 } 104 96 105 97 if err == nil && !c.Bool("force-home-manager") { ··· 136 128 &cli.StringFlag{ 137 129 Name: "user", 138 130 }, 139 - &cli.BoolFlag{ 140 - Name: "impure", 141 - Value: true, 142 - }, 143 131 }, 144 132 Action: func(c *cli.Context) error { 145 133 flake := configuration.Flake 134 + extraArgs := c.Args().Slice() 146 135 147 136 if flake == "" { 148 137 flake = os.Getenv("FLAKE") 149 - } 150 - 151 - extraArgs := []string{} 152 - 153 - if c.Bool("impure") { 154 - extraArgs = []string{"--impure"} 155 138 } 156 139 157 140 if user := c.String("user"); user != "" {