summaryrefslogtreecommitdiff
path: root/home/config/environment.nix
diff options
context:
space:
mode:
Diffstat (limited to 'home/config/environment.nix')
-rw-r--r--home/config/environment.nix7
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 ;