Add default NixOS module to flake

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

Before this change:

```nix
nixpkgs.lib.nixosSystem {
  modules = [
    ./configuration.nix
    agenix.nixosModules.age
  ];
}
After this change:

```nix
nixpkgs.lib.nixosSystem {
  modules = [
    ./configuration.nix
    agenix.nixosModule
  ];
}
```
This commit is contained in:
Luís Fonseca 2022-02-28 17:38:21 +00:00 committed by GitHub
parent b4ab630f19
commit 9316abd9f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,6 +7,7 @@
in { in {
nixosModules.age = import ./modules/age.nix; nixosModules.age = import ./modules/age.nix;
nixosModule = self.nixosModules.age;
overlay = import ./overlay.nix; overlay = import ./overlay.nix;