From e09dd717bb2c8190f3f00f71d1f7030c97d455f4 Mon Sep 17 00:00:00 2001 From: siryoussef <53839210+siryoussef@users.noreply.github.com> Date: Mon, 9 Sep 2024 21:37:20 +0300 Subject: [PATCH 1/2] Update flake.nix homeManagerModules --- flake.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/flake.nix b/flake.nix index de9a5a7..06f9945 100644 --- a/flake.nix +++ b/flake.nix @@ -3,5 +3,6 @@ nixosModules.impermanence = import ./nixos.nix; nixosModules.home-manager.impermanence = import ./home-manager.nix; nixosModule = self.nixosModules.impermanence; + homeManagerModules.impermanence = import ./home-manager.nix }; } From caa9775a43f70eda86c838641c00e2bba0af695b Mon Sep 17 00:00:00 2001 From: Youssef Date: Mon, 9 Sep 2024 21:53:06 +0300 Subject: [PATCH 2/2] Correct homeManagerModule name for easy usage --- README.org | 23 +++++++++++++++++++++++ flake.nix | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/README.org b/README.org index 0a56b6d..7da14e0 100644 --- a/README.org +++ b/README.org @@ -349,6 +349,29 @@ } #+end_src + or use the provided ~homeManagerModules.impermanence~ flake output: + + #+end_src + + #+begin_src nix + { + inputs = { + impermanence.url = "github:nix-community/impermanence"; + }; + + outputs = { self, nixpkgs, impermanence, ... }: + { + homeConfigurations.sythe = home-manager.lib.homeManagerConfiguration { + inherit pkgs; + modules = [ + impermanence.homeManagerModules.impermanence + ./machines/sythe/home.nix + ]; + }; + }; + } + #+end_src + This adds the ~home.persistence~ option, which is an attribute set of submodules, where the attribute name is the path to persistent storage. diff --git a/flake.nix b/flake.nix index 06f9945..fa197e2 100644 --- a/flake.nix +++ b/flake.nix @@ -3,6 +3,6 @@ nixosModules.impermanence = import ./nixos.nix; nixosModules.home-manager.impermanence = import ./home-manager.nix; nixosModule = self.nixosModules.impermanence; - homeManagerModules.impermanence = import ./home-manager.nix + homeManagerModules.impermanence = import ./home-manager.nix; }; }