Skip to content

Commit

Permalink
Update README.md with home-manager example
Browse files Browse the repository at this point in the history
  • Loading branch information
SebTM committed Oct 21, 2024
1 parent eb7a85f commit 8031706
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,44 @@
}
#+end_src

or use the provided ~homeManagerModules.impermanence~ flake output:

#+begin_src nix
{
inputs = {
home-manager.url = "github:nix-community/home-manager";
impermanence.url = "github:nix-community/impermanence";
};

outputs =
{
home-manager,
nixpkgs,
impermanence,
...
}:
{
nixosConfigurations.sythe = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
{
imports = [ home-manager.nixosModules.home-manager ];

home-manager.users.username =
{ ... }:
{
imports = [
impermanence.homeManagerModules.impermanence
./home/impermanence.nix # Your home-manager impermanence-configuration
];
};
}
];
};
};
}
#+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

0 comments on commit 8031706

Please sign in to comment.