diff options
| author | Quentin Aristote <quentin@aristote.fr> | 2021-09-20 21:43:31 +0200 |
|---|---|---|
| committer | Quentin Aristote <quentin@aristote.fr> | 2021-09-20 21:43:31 +0200 |
| commit | 411aa1a0ccdf0064f5d14844e5047ecd7c180707 (patch) | |
| tree | 3225a69cfb57502575635a987445ab6b0ebfc57e /home | |
| parent | d4c0f93e1d61960e6bd534ad29fc84a1190a8ff4 (diff) | |
factorise path to code/nix
Diffstat (limited to 'home')
| -rw-r--r-- | home/config/environment.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/home/config/environment.nix b/home/config/environment.nix index bc1c85c..e09dbc4 100644 --- a/home/config/environment.nix +++ b/home/config/environment.nix @@ -32,13 +32,14 @@ programs.bash = { enable = true; - shellAliases = { + shellAliases = let nix-code-path = "~/code/nix"; + in { amimullvad = "curl -Ls https://am.i.mullvad.net/connected"; - nixos-update-config = "sudo cp -rf ~/code/nix/latitude-7490/nixos/ /etc/"; + nixos-update-config = "sudo cp -rf ${nix-code-path}/latitude-7490/nixos/ /etc/"; rm = "rm -f"; ssh = "TERM=xterm-256color ssh"; mkenv = '' - cp ~/code/nix/shells/shell.nix . ; + cp ${nix-code-path}/shells/shell.nix . ; echo "use_nix" >> .envrc ; direnv allow ; $EDITOR shell.nix ; |
