-
-
Save cleverca22/282c960da95dd23b72150ca36ef3ff50 to your computer and use it in GitHub Desktop.
environment variables
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# nixos-rebuild build-vm -I nixos-config=./configuration.nix -Q -j8 | |
{ ... }: | |
{ | |
environment.variables.A = "1"; | |
programs.bash.shellInit = "export B=2"; | |
environment.extraInit = "export C=3"; | |
environment.shellInit = "export D=4"; | |
environment.loginShellInit = "export E=5"; | |
environment.interactiveShellInit = "export F=6"; | |
services.xserver = { | |
displayManager.lightdm.enable = true; | |
#windowManager.i3.enable = true; | |
#windowManager.default = "i3"; | |
#desktopManager.default = "none"; | |
desktopManager.xterm.enable = true; | |
enable = true; | |
}; | |
services.nixosManual.enable = false; | |
users.users.root.password = "root"; | |
users.users.clever = { | |
isNormalUser = true; | |
initialPassword = "clever"; | |
}; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export F=6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
. /nix/store/x13swbpz573bgk0b5lfiddhk3w6ipns7-set-environment | |
export D=4 | |
export B=2 | |
export E=5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export A="1" | |
export C=3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment