From 9316abd9f50357276d218f07a982500300a1b7bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Fonseca?= Date: Mon, 28 Feb 2022 17:38:21 +0000 Subject: [PATCH] Add default NixOS module to flake MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 ]; } ``` --- flake.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/flake.nix b/flake.nix index 02221f1..a62f631 100644 --- a/flake.nix +++ b/flake.nix @@ -7,6 +7,7 @@ in { nixosModules.age = import ./modules/age.nix; + nixosModule = self.nixosModules.age; overlay = import ./overlay.nix;