persist
This commit is contained in:
parent
bf62eaece2
commit
93bc56aa05
|
@ -89,6 +89,34 @@
|
||||||
# Unstable user programs
|
# Unstable user programs
|
||||||
unstable.wezterm
|
unstable.wezterm
|
||||||
];
|
];
|
||||||
|
|
||||||
|
persistence."/persist/home/sajenim" = {
|
||||||
|
directories = [
|
||||||
|
"Documents"
|
||||||
|
"Downloads"
|
||||||
|
"Games"
|
||||||
|
"Music"
|
||||||
|
"Pictures"
|
||||||
|
"Printer"
|
||||||
|
"Videos"
|
||||||
|
|
||||||
|
".gnupg"
|
||||||
|
".ssh"
|
||||||
|
".github"
|
||||||
|
".mozilla"
|
||||||
|
".zsh_history"
|
||||||
|
|
||||||
|
".local/bin"
|
||||||
|
".local/share/nix"
|
||||||
|
".local/share/nvim"
|
||||||
|
|
||||||
|
".config/discord"
|
||||||
|
".config/BetterDiscord"
|
||||||
|
".config/PrusaSlicer"
|
||||||
|
".config/Yubico"
|
||||||
|
];
|
||||||
|
allowOther = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Setup our window manager
|
# Setup our window manager
|
||||||
|
|
22
nixos/common/optional/persist.nix
Normal file
22
nixos/common/optional/persist.nix
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
# Files and directories we with to keep between reboots
|
||||||
|
environment.persistence."/persist" = {
|
||||||
|
hideMounts = true;
|
||||||
|
directories = [
|
||||||
|
"/var/log"
|
||||||
|
"/var/lib/bluetooth"
|
||||||
|
"/var/lib/nixos"
|
||||||
|
"/var/lib/systemd/coredump"
|
||||||
|
"/etc/NetworkManager/system-connections"
|
||||||
|
];
|
||||||
|
files = [
|
||||||
|
"/etc/machine-id"
|
||||||
|
"/etc/ssh/ssh_host_rsa_key"
|
||||||
|
"/etc/ssh/ssh_host_rsa_key.pub"
|
||||||
|
"/etc/ssh/ssh_host_ed25519_key"
|
||||||
|
"/etc/ssh/ssh_host_ed25519_key.pub"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue