Move NixOS module out of flake-utils
This commit is contained in:
parent
65228f6447
commit
bbb12a6ce4
17
flake.nix
17
flake.nix
|
@ -6,7 +6,8 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, flake-utils, rust-overlay, ... }:
|
outputs = { self, nixpkgs, flake-utils, rust-overlay, ... }:
|
||||||
flake-utils.lib.eachDefaultSystem (system:
|
{
|
||||||
|
packages = flake-utils.lib.eachDefaultSystem (system:
|
||||||
let
|
let
|
||||||
overlays = [ (import rust-overlay) ];
|
overlays = [ (import rust-overlay) ];
|
||||||
pkgs = import nixpkgs { inherit system overlays; };
|
pkgs = import nixpkgs { inherit system overlays; };
|
||||||
|
@ -27,10 +28,12 @@
|
||||||
buildInputs =
|
buildInputs =
|
||||||
[ (rustVersion.override { extensions = [ "rust-src" ]; }) ];
|
[ (rustVersion.override { extensions = [ "rust-src" ]; }) ];
|
||||||
};
|
};
|
||||||
nixosModules.default = { config, lib, pkgs, ... }:
|
}
|
||||||
with lib;
|
);
|
||||||
let cfg = config.mawalu.services.norbert;
|
nixosModules.default = { config, lib, pkgs, ... }:
|
||||||
in
|
with lib;
|
||||||
|
let cfg = config.mawalu.services.norbert;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
options.mawalu.services.rail = {
|
options.mawalu.services.rail = {
|
||||||
enable = mkEnableOption "Enable the rail tmpmail server";
|
enable = mkEnableOption "Enable the rail tmpmail server";
|
||||||
|
@ -50,7 +53,5 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue