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 de9a5a7..fa197e2 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; }; }