Prepare config for flake usage

This commit is contained in:
Vili Sinervä 2025-06-01 12:39:49 +03:00
parent f6ac5c862a
commit f9d537522d
Signed by: Vili Sinervä
SSH key fingerprint: SHA256:FladqYjaE4scJY3Hi+gnShZ6ygnTJgixy0I6BAoHyos
3 changed files with 3 additions and 28 deletions

View file

@ -46,9 +46,9 @@
ZSH_TMUX_CONFIG=/etc/tmux.conf
'';
promptInit = ''
if [ -n "$IN_NIX_SHELL" ]; then
if [ "$SHLVL" "!= 1" ]; then
setopt PROMPT_SUBST
RPROMPT+='[nix]'
RPROMPT+='[depth-$\{SHLVL\}]'
fi
'';
};
@ -131,6 +131,7 @@
######################################## Housekeeping ###########################################
system.autoUpgrade = {
enable = true;
flake = "git+https://gitea.sinerva.eu/VSinerva/nixos-conf.git?ref=main&shallow=1";
dates = "04:00";
randomizedDelaySec = "30min";
allowReboot = true;
@ -147,7 +148,6 @@
"flakes"
];
auto-optimise-store = true;
tarball-ttl = 0;
};
gc = {
automatic = true;