Nix : Drop cache on manual rebuilds.
This commit is contained in:
parent
b5556b92cf
commit
3d764d072e
|
@ -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"
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue