Move NixOS module out of flake-utils

This commit is contained in:
Martin 2023-07-17 22:21:30 +02:00
parent 65228f6447
commit bbb12a6ce4
Signed by: mawalu
GPG Key ID: BF556F989760A7C8
1 changed files with 9 additions and 8 deletions

View File

@ -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,6 +28,8 @@
buildInputs =
[ (rustVersion.override { extensions = [ "rust-src" ]; }) ];
};
}
);
nixosModules.default = { config, lib, pkgs, ... }:
with lib;
let cfg = config.mawalu.services.norbert;
@ -50,7 +53,5 @@
};
};
};
}
);
};
}