From bbb12a6ce41f5b9d1ae86fc044c09cbaaba6ee4c Mon Sep 17 00:00:00 2001 From: mawalu Date: Mon, 17 Jul 2023 22:21:30 +0200 Subject: [PATCH] Move NixOS module out of flake-utils --- flake.nix | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/flake.nix b/flake.nix index 0712cbb..daabfba 100644 --- a/flake.nix +++ b/flake.nix @@ -6,7 +6,8 @@ }; outputs = { self, nixpkgs, flake-utils, rust-overlay, ... }: - flake-utils.lib.eachDefaultSystem (system: + { + packages = flake-utils.lib.eachDefaultSystem (system: let overlays = [ (import rust-overlay) ]; pkgs = import nixpkgs { inherit system overlays; }; @@ -27,10 +28,12 @@ buildInputs = [ (rustVersion.override { extensions = [ "rust-src" ]; }) ]; }; - nixosModules.default = { config, lib, pkgs, ... }: - with lib; - let cfg = config.mawalu.services.norbert; - in + } + ); + nixosModules.default = { config, lib, pkgs, ... }: + with lib; + let cfg = config.mawalu.services.norbert; + in { options.mawalu.services.rail = { enable = mkEnableOption "Enable the rail tmpmail server"; @@ -50,7 +53,5 @@ }; }; }; - - } - ); + }; } \ No newline at end of file