Move hosts to using inputs

This commit is contained in:
Greg Hellings
2023-06-21 11:06:56 -05:00
parent 99c3efc191
commit ea78d26e8d
2 changed files with 13 additions and 15 deletions
+6 -6
View File
@@ -1,20 +1,20 @@
{ nixstable, nixunstable, overlays, wsl, agenix, ... }:
{ inputs, overlays, ... }:
let
wsl = args: (unstable (args // { extraMods = [ wsl.nixosModules.wsl ]; }));
unstable = args: (machine (args // { channel = nixunstable; }));
wsl = args: (unstable (args // { extraMods = [ inputs.wsl.nixosModules.wsl ]; }));
unstable = args: (machine (args // { channel = inputs.nixunstable; }));
machine = {
system ? "x86_64-linux",
name,
channel ? nixstable,
channel ? inputs.nixstable,
extraMods ? []
}:
let
nixpkgs = channel;
in nixpkgs.lib.nixosSystem {
in inputs.nixpkgs.lib.nixosSystem {
inherit system;
modules = [
{ nixpkgs.overlays = overlays; }
agenix.nixosModules.default
inputs.agenix.nixosModules.default
../modules-all
../modules-linux
./${name}