diff --git a/.config/bash/module/Export.sh b/.config/bash/module/Export.sh index b5c1fd2..6c07192 100644 --- a/.config/bash/module/Export.sh +++ b/.config/bash/module/Export.sh @@ -24,9 +24,6 @@ export TEXMFLOCAL="${HOME}/app/tex/data/local" # Dotfiles exports. export BASH_MODULE_PATH="${HOME}/.config/bash/module" -# Nix config. -export NIX_PATH="nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos:nixos-config=/root/.config/linux/nix/${HOSTNAME}/Configuration.nix:/nix/var/nix/profiles/per-user/root/channels" - # Set java version. Sets to latest when not specified. # Usage: export_java function export_java() { diff --git a/.config/bash/module/Nix.sh b/.config/bash/module/Nix.sh index ec975e7..86306fe 100644 --- a/.config/bash/module/Nix.sh +++ b/.config/bash/module/Nix.sh @@ -35,12 +35,12 @@ function nix_channel() { # Update system (rebuild). function nix_update() { - nixos-rebuild switch + nixos-rebuild switch -I nixos-config=/root/.config/linux/nix/${HOSTNAME}/Configuration.nix } # Upgrade system. function nix_upgrade() { - nixos-rebuild switch --upgrade + nixos-rebuild switch --upgrade -I nixos-config=/root/.config/linux/nix/${HOSTNAME}/Configuration.nix } # Free up root space.