1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-30 19:47:47 +00:00

Use only linux systems & better importing mechanism

This commit is contained in:
RGBCube 2023-11-23 23:41:53 +03:00
parent ae61086b13
commit c194b4c698
No known key found for this signature in database
2 changed files with 18 additions and 16 deletions

6
flake.lock generated
View file

@ -168,11 +168,11 @@
]
},
"locked": {
"lastModified": 1700770129,
"narHash": "sha256-fmpMWS4EkK5ZMHGJeKPrO9c1+REATJJrdlseOaaSHwM=",
"lastModified": 1700770982,
"narHash": "sha256-S5aUrhSKFK0g5r92g646hFc/CUl4sZzY2K0t2YkmgdY=",
"owner": "RGBCube",
"repo": "FlakeTools",
"rev": "e8b3ae0ddf49200a0e7fdb8d48e2d46219cbc71d",
"rev": "f17c0afee69a6df19b5add11c5ce9b156fb11406",
"type": "github"
},
"original": {

View file

@ -38,7 +38,7 @@
};
};
outputs = { nixpkgs, homeManager, tools, fenix, ... } @ inputs: tools.eachDefaultArch (system: let
outputs = { nixpkgs, homeManager, tools, fenix, ... } @ inputs: tools.eachDefaultLinuxArch (system: let
upkgs = {
theme = import ./themes/gruvbox.nix;
@ -87,7 +87,7 @@
};
};
defaultConfiguration = host: ulib.systemConfiguration {
defaultConfiguration = host: abstractions.systemConfiguration {
nix.gc = {
automatic = true;
dates = "daily";
@ -121,16 +121,18 @@
inherit upkgs ulib;
};
importConfiguration = host: lib.nixosSystem {
inherit specialArgs;
importConfigurations = tools.recursiveUpdateMap (host: {
nixosConfigurations.${host} = lib.nixosSystem {
inherit specialArgs;
modules = [
homeManager.nixosModules.default
(defaultConfiguration host)
./machines/${host}
];
};
in {
nixosConfigurations.enka = importConfiguration "enka";
});
modules = [
homeManager.nixosModules.default
(defaultConfiguration host)
./machines/${host}
];
};
});
in importConfigurations [
"enka"
]);
}