From 4547e75868cba2a265b78661ddc386b5e81c1bb0 Mon Sep 17 00:00:00 2001 From: gramanas Date: Mon, 7 Oct 2024 11:47:06 +0300 Subject: init --- nixos/impermanence.nix | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 nixos/impermanence.nix (limited to 'nixos/impermanence.nix') diff --git a/nixos/impermanence.nix b/nixos/impermanence.nix new file mode 100644 index 0000000..a2c32d9 --- /dev/null +++ b/nixos/impermanence.nix @@ -0,0 +1,48 @@ +{inputs, ...}: { + imports = [ + inputs.impermanence.nixosModules.impermanence + ]; + + environment.persistence."/persist" = { + hideMounts = true; + + directories = [ + "/var/lib/bluetooth" + "/var/lib/fprint" + "/var/lib/nixos" + "/var/lib/systemd" + "/etc/NetworkManager/system-connections" + ]; + + files = [ + # "/etc/machine-id" + ]; + + users.chen = { + directories = [ + # XDG user directories + "Desktop" + "Documents" + "Downloads" + "Music" + "Pictures" + "Public" + "Templates" + "Videos" + + # More directories + ".config/emacs" + ".local/share/Steam" + ".ssh" + ]; + + files = [ + ".history" + ]; + }; + }; + + environment.etc.machine-id.text = "67803336e24344e9aa58ea47b51180d0"; + + programs.fuse.userAllowOther = true; +} -- cgit v1.2.3