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;
SWAY_CONFIG = ./sway/module;
};
pathsToLink = [
builtins.toString(./sway/bin)
];
etc.swaybin.source = ./sway/bin;
extraInit = ''
export PATH="/etc/swaybin:$PATH"
'';
};
}

View file

@ -7,7 +7,7 @@ function nixos_rebuild() {
local target="${1}"
[[ "${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.
@ -17,7 +17,7 @@ function nixos_switch() {
local target="${1}"
[[ "${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.