diff options
author | ene <ene@sils.li> | 2023-02-16 17:36:26 +0100 |
---|---|---|
committer | ene <ene@sils.li> | 2023-02-16 18:13:03 +0100 |
commit | 62609ecba4373d6d89a39d7b5e7ca220ad869975 (patch) | |
tree | 52ed2e8608d4eda8759707743989b6af40b08ee3 /home-manager/impermanence/default.nix | |
parent | Feat(nix): Add settings (diff) | |
download | nixos-config-62609ecba4373d6d89a39d7b5e7ca220ad869975.tar.gz nixos-config-62609ecba4373d6d89a39d7b5e7ca220ad869975.zip |
Feat: Add impersistent for persistent files and dirs
Diffstat (limited to '')
-rw-r--r-- | home-manager/impermanence/default.nix | 25 |
1 files changed, 25 insertions, 0 deletions
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; + }; +} |