This commit is contained in:
♥ Minnie ♥ 2024-01-14 06:29:32 +08:00
parent bf62eaece2
commit 93bc56aa05
2 changed files with 50 additions and 0 deletions

View file

@ -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

View 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"
];
};
}