summaryrefslogtreecommitdiff
path: root/machines/lenovo/impermanence.nix
diff options
context:
space:
mode:
authorandromeda <andromeda@lenovo>2025-12-31 02:28:00 +0100
committerandromeda <andromeda@lenovo>2025-12-31 02:28:00 +0100
commit4b8882d82dcc8667d2b1276d65e43d081c5fa868 (patch)
treee83b7e4734e05c5f7d72ccb3c6228448f5fad420 /machines/lenovo/impermanence.nix
parent42a93f042e2c821939fa6aa4ac8945997d5b5099 (diff)
change pub key management again, centralize users, start to modularize lenovo conf
Diffstat (limited to 'machines/lenovo/impermanence.nix')
-rw-r--r--machines/lenovo/impermanence.nix44
1 files changed, 44 insertions, 0 deletions
diff --git a/machines/lenovo/impermanence.nix b/machines/lenovo/impermanence.nix
new file mode 100644
index 0000000..1bb98f5
--- /dev/null
+++ b/machines/lenovo/impermanence.nix
@@ -0,0 +1,44 @@
+{
+ environment.persistence."/nix/persist" = {
+ enable = true;
+ hideMounts = true;
+ directories = [
+ "/var/log"
+ "/var/lib/bluetooth"
+ "/var/lib/nixos"
+ "/var/lib/systemd/coredump"
+ "/etc/NetworkManager/system-connections"
+ "/etc/ssh"
+ ];
+ files = [
+ "/etc/machine-id"
+ "/etc/ly/save.txt"
+ ];
+ users."andromeda" = {
+ directories = [
+ ".backups"
+ ".local/share/Anki2"
+ ".local/share/chat.fluffy.fluffychat"
+ ".local/share/zoxide"
+ ".ssh"
+ "conf"
+ "Downloads"
+ "pp"
+ ];
+ files = [
+ ".bash_history"
+ ".brush_history"
+ ];
+ };
+ users."mtgmonkey" = {
+ directories = [
+ ".local/share/zoxide"
+ ".ssh"
+ ];
+ files = [
+ ".bash_history"
+ ".brush_history"
+ ];
+ };
+ };
+}