From 2e1fab3e13c557928313f022a7f48ff0ce55e251 Mon Sep 17 00:00:00 2001 From: ene Date: Mon, 20 Feb 2023 10:12:35 +0100 Subject: Fix(system): Refactor impermanence --- home-manager/default.nix | 1 + home-manager/impermanence/default.nix | 32 ++++++++++++++------------------ 2 files changed, 15 insertions(+), 18 deletions(-) (limited to 'home-manager') diff --git a/home-manager/default.nix b/home-manager/default.nix index 4f10b40f..bdbf50a6 100644 --- a/home-manager/default.nix +++ b/home-manager/default.nix @@ -16,6 +16,7 @@ dataHome = "${homeDirectory}/.local/share"; in { imports = [ + inputs.impermanence.nixosModules.home-manager.impermanence ./impermanence ./packages ./config diff --git a/home-manager/impermanence/default.nix b/home-manager/impermanence/default.nix index d4654c37..7a542ffa 100644 --- a/home-manager/impermanence/default.nix +++ b/home-manager/impermanence/default.nix @@ -5,22 +5,18 @@ ... }: { # TODO use this instead of the root config - # import = [ - # impermanence.nixosModules.home-manager.impermanence - # ]; - # - # home.persistence."/srv${config.home.homeDirectory}" = { - # directories = [ - # ".local/share" - # ".cache" - # - # "media" - # "repos" - # "school" - # ]; - # files = [ - # ".screenrc" - # ]; - # allowOther = true; - # }; + + nixosConfig.home.persistence."/srv/home/soispha" = { + allowOther = true; + directories = [ + ".local/share" + ".cache" + + "media" + "repos" + "school" + ]; + files = [ + ]; + }; } -- cgit 1.4.1