From 7c139566c7d939fef7a0b62fea5f6bc0e587287c Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Thu, 9 Dec 2021 00:31:56 -0500 Subject: [PATCH] hosts/Infini-STICK: add persistence config --- hosts/Infini-STICK/default.nix | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/hosts/Infini-STICK/default.nix b/hosts/Infini-STICK/default.nix index 5b191d8..31e7204 100644 --- a/hosts/Infini-STICK/default.nix +++ b/hosts/Infini-STICK/default.nix @@ -25,7 +25,28 @@ }; }; - environment.persistence."/persist" = { }; + environment.persistence."/persist" = { + directories = [ + "/home" + "/etc/nixos" + + "/root/.local/share/nix" + "/root/.ssh" + + # /etc directories + "/etc/ssh" + + # /var directories + "/var/log" + "/var/lib/bluetooth" + "/var/lib/systemd/coredump" + "/var/db/sudo/lectured" + ]; + + files = [ + "/etc/machine-id" + ]; + }; system.stateVersion = "21.11"; }