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:
parent
ae61086b13
commit
c194b4c698
2 changed files with 18 additions and 16 deletions
6
flake.lock
generated
6
flake.lock
generated
|
@ -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": {
|
||||
|
|
12
flake.nix
12
flake.nix
|
@ -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,7 +121,8 @@
|
|||
inherit upkgs ulib;
|
||||
};
|
||||
|
||||
importConfiguration = host: lib.nixosSystem {
|
||||
importConfigurations = tools.recursiveUpdateMap (host: {
|
||||
nixosConfigurations.${host} = lib.nixosSystem {
|
||||
inherit specialArgs;
|
||||
|
||||
modules = [
|
||||
|
@ -130,7 +131,8 @@
|
|||
./machines/${host}
|
||||
];
|
||||
};
|
||||
in {
|
||||
nixosConfigurations.enka = importConfiguration "enka";
|
||||
});
|
||||
in importConfigurations [
|
||||
"enka"
|
||||
]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue