From 62609ecba4373d6d89a39d7b5e7ca220ad869975 Mon Sep 17 00:00:00 2001 From: ene Date: Thu, 16 Feb 2023 17:36:26 +0100 Subject: Feat: Add impersistent for persistent files and dirs --- home-manager/impermanence/default.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 home-manager/impermanence/default.nix (limited to 'home-manager/impermanence/default.nix') diff --git a/home-manager/impermanence/default.nix b/home-manager/impermanence/default.nix new file mode 100644 index 00000000..bcb1c62f --- /dev/null +++ b/home-manager/impermanence/default.nix @@ -0,0 +1,25 @@ +# vim: ts=2 +{ + config, + impermanence, + ... +}: { + import = [ + impermanence.nixosModules.home-manager.impermanence + ]; + + home.persistence."/srv${config.home.homeDirectory}" = { + directories = [ + ".local/share" + ".cache" + + "media" + "repos" + "school" + ]; + files = [ + ".screenrc" + ]; + allowOther = true; + }; +} -- cgit 1.4.1