Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

homeManagerModules attripute naming outside nixosModules #211

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
}