Nix : Drop cache on manual rebuilds.

This commit is contained in:
Dmitry Voronin 2024-03-29 04:43:32 +03:00
parent b5556b92cf
commit 3d764d072e
2 changed files with 6 additions and 5 deletions

View file

@ -45,8 +45,9 @@
FOOT_CONFIG = ./foot/Foot.ini; FOOT_CONFIG = ./foot/Foot.ini;
SWAY_CONFIG = ./sway/module; SWAY_CONFIG = ./sway/module;
}; };
pathsToLink = [ etc.swaybin.source = ./sway/bin;
builtins.toString(./sway/bin) extraInit = ''
]; export PATH="/etc/swaybin:$PATH"
'';
}; };
} }

View file

@ -7,7 +7,7 @@ function nixos_rebuild() {
local target="${1}" local target="${1}"
[[ "${target}" = "" ]] && target="${HOSTNAME}" [[ "${target}" = "" ]] && target="${HOSTNAME}"
nixos-rebuild boot --flake "${_nix_system_config}#${target}" --refresh ${@} nixos-rebuild boot --refresh --option eval-cache false --flake "${_nix_system_config}#${target}"
} }
# Rebuild and switch system. # Rebuild and switch system.
@ -17,7 +17,7 @@ function nixos_switch() {
local target="${1}" local target="${1}"
[[ "${target}" = "" ]] && target="${HOSTNAME}" [[ "${target}" = "" ]] && target="${HOSTNAME}"
nixos-rebuild switch --flake "${_nix_system_config}#${target}" --refresh ${@} nixos-rebuild switch --refresh --option eval-cache false --flake "${_nix_system_config}#${target}"
} }
# Spawn shell with specified nix environment. # Spawn shell with specified nix environment.