2023-12-10 15:56:40 +00:00
|
|
|
{lib, ...}: {
|
2023-12-21 00:03:59 +00:00
|
|
|
sops.age.sshKeyPaths = lib.mkForce ["/persist/etc/ssh/ssh_host_ed25519_key"];
|
2023-12-10 15:42:07 +00:00
|
|
|
fileSystems."/persist".neededForBoot = true;
|
|
|
|
environment.persistence."/persist" = {
|
|
|
|
hideMounts = true;
|
2023-10-12 14:21:14 +00:00
|
|
|
directories = [
|
2023-10-12 15:13:05 +00:00
|
|
|
"/var/log"
|
|
|
|
"/var/lib"
|
2024-02-13 20:19:48 +00:00
|
|
|
"/etc/secureboot"
|
2023-10-12 14:21:14 +00:00
|
|
|
];
|
|
|
|
files = [
|
|
|
|
"/etc/ssh/ssh_host_ed25519_key"
|
|
|
|
"/etc/ssh/ssh_host_ed25519_key.pub"
|
|
|
|
"/etc/ssh/ssh_host_rsa_key"
|
|
|
|
"/etc/ssh/ssh_host_rsa_key.pub"
|
|
|
|
];
|
2023-12-10 15:42:07 +00:00
|
|
|
users.guanranwang = {
|
|
|
|
directories = [
|
|
|
|
"Desktop"
|
|
|
|
"Documents"
|
|
|
|
"Downloads"
|
|
|
|
"Music"
|
|
|
|
"Pictures"
|
2024-02-13 20:19:48 +00:00
|
|
|
"Videos"
|
2023-12-10 15:42:07 +00:00
|
|
|
#"Public"
|
|
|
|
#"Templates"
|
2024-02-13 20:19:48 +00:00
|
|
|
|
|
|
|
".ssh"
|
|
|
|
#".librewolf"
|
|
|
|
".mozilla/firefox"
|
|
|
|
".thunderbird"
|
2023-12-10 15:42:07 +00:00
|
|
|
|
|
|
|
".cache"
|
2024-02-13 20:19:48 +00:00
|
|
|
".local/share"
|
2023-12-10 15:42:07 +00:00
|
|
|
".local/state"
|
|
|
|
|
2024-02-13 20:19:48 +00:00
|
|
|
".config/Mumble"
|
|
|
|
".config/VSCodium"
|
2023-12-10 15:42:07 +00:00
|
|
|
".config/chromium"
|
|
|
|
".config/fcitx5"
|
2024-01-01 08:26:18 +00:00
|
|
|
".config/obs-studio"
|
|
|
|
".config/qBittorrent"
|
2024-02-13 20:19:48 +00:00
|
|
|
".config/spotify"
|
2023-12-10 15:42:07 +00:00
|
|
|
];
|
|
|
|
files = [
|
|
|
|
".config/sops/age/keys.txt"
|
2024-01-15 09:02:06 +00:00
|
|
|
#".config/KDE/neochat.conf"
|
|
|
|
#".config/neochatrc"
|
2023-12-10 15:42:07 +00:00
|
|
|
];
|
|
|
|
};
|
2023-10-12 14:21:14 +00:00
|
|
|
};
|
2023-11-04 10:14:42 +00:00
|
|
|
}
|