2023-12-10 23:56:40 +08:00
|
|
|
{lib, ...}: {
|
2023-11-23 14:23:03 +08:00
|
|
|
### sops-nix
|
2023-12-21 08:03:59 +08:00
|
|
|
sops.age.sshKeyPaths = lib.mkForce ["/persist/etc/ssh/ssh_host_ed25519_key"];
|
2023-10-12 22:21:14 +08:00
|
|
|
|
2023-12-10 23:42:07 +08:00
|
|
|
fileSystems."/persist".neededForBoot = true;
|
|
|
|
environment.persistence."/persist" = {
|
|
|
|
hideMounts = true;
|
2023-10-12 22:21:14 +08:00
|
|
|
directories = [
|
2023-10-12 23:13:05 +08:00
|
|
|
"/var/log"
|
|
|
|
"/var/lib"
|
|
|
|
|
2023-12-10 23:42:07 +08:00
|
|
|
"/etc/secureboot" # sbctl, lanzaboote
|
2023-10-12 22:21:14 +08: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 23:42:07 +08:00
|
|
|
users.guanranwang = {
|
|
|
|
directories = [
|
|
|
|
"Desktop"
|
|
|
|
"Documents"
|
|
|
|
"Downloads"
|
|
|
|
"Music"
|
|
|
|
"Pictures"
|
|
|
|
#"Public"
|
|
|
|
#"Templates"
|
|
|
|
"Videos"
|
|
|
|
|
|
|
|
".cache"
|
|
|
|
".local/share" # ".local/bin" is managed through home-manager
|
|
|
|
".local/state"
|
|
|
|
".ssh"
|
|
|
|
|
|
|
|
".librewolf"
|
2024-01-07 23:45:20 +08:00
|
|
|
".thunderbird"
|
2023-12-10 23:42:07 +08:00
|
|
|
".config/chromium"
|
|
|
|
".config/fcitx5"
|
|
|
|
".config/Mumble"
|
2023-12-27 12:42:45 +08:00
|
|
|
".config/spotify"
|
2024-01-01 16:26:18 +08:00
|
|
|
".config/obs-studio"
|
|
|
|
".config/qBittorrent"
|
2024-01-04 05:03:46 +08:00
|
|
|
".config/VSCodium" # UI states, GitHub account state, etc
|
2023-12-10 23:42:07 +08:00
|
|
|
];
|
|
|
|
files = [
|
|
|
|
".config/sops/age/keys.txt"
|
2024-01-15 17:02:06 +08:00
|
|
|
#".config/KDE/neochat.conf"
|
|
|
|
#".config/neochatrc"
|
2023-12-10 23:42:07 +08:00
|
|
|
];
|
|
|
|
};
|
2023-10-12 22:21:14 +08:00
|
|
|
};
|
2023-11-04 18:14:42 +08:00
|
|
|
}
|