nix-community / impermanence

Modules to help you handle persistent state on systems with ephemeral root storage [maintainer=@talyz]
MIT License
1.09k stars 80 forks source link

Add default NixOS module to flake #82

Closed crunchcat closed 2 years ago

crunchcat commented 2 years ago

This adds a “default” NixOS module in flake.nix. This makes using this in flakes a little less verbose and repetitive.

Before this change:

nixpkgs.lib.nixosSystem {
  modules = [
    ./configuration.nix
    impermanence.nixosModules.impermanence
  ];
}

After this change:

nixpkgs.lib.nixosSystem {
  modules = [
    ./configuration.nix
    impermanence.nixosModule
  ];
}
talyz commented 2 years ago

Thanks! :)