This commit is contained in:
2026-07-14 17:36:29 +09:00
parent 2a37c9d3d2
commit bd564ddba4
5 changed files with 162 additions and 145 deletions
+8 -8
View File
@@ -1,6 +1,5 @@
{
inputs,
pkgs,
config,
lib,
...
@@ -10,13 +9,6 @@ let
username = "moons";
unstable = import inputs.nixpkgs-unstable {
inherit (pkgs) system;
config = {
allowUnfree = true;
};
};
mkSystem =
{
host,
@@ -24,6 +16,14 @@ let
profiles ? [ ],
extraModules ? [ ],
}:
let
unstable = import inputs.nixpkgs-unstable {
inherit system;
config = {
allowUnfree = true;
};
};
in
assert lib.assertMsg (lib.elem system config.systems)
"mkSystem: system '${system}' not in valid systems: ${lib.generators.toPretty { } config.systems}";
nixosSystem {