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": {
|
"locked": {
|
||||||
"lastModified": 1700770129,
|
"lastModified": 1700770982,
|
||||||
"narHash": "sha256-fmpMWS4EkK5ZMHGJeKPrO9c1+REATJJrdlseOaaSHwM=",
|
"narHash": "sha256-S5aUrhSKFK0g5r92g646hFc/CUl4sZzY2K0t2YkmgdY=",
|
||||||
"owner": "RGBCube",
|
"owner": "RGBCube",
|
||||||
"repo": "FlakeTools",
|
"repo": "FlakeTools",
|
||||||
"rev": "e8b3ae0ddf49200a0e7fdb8d48e2d46219cbc71d",
|
"rev": "f17c0afee69a6df19b5add11c5ce9b156fb11406",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
28
flake.nix
28
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 = {
|
upkgs = {
|
||||||
theme = import ./themes/gruvbox.nix;
|
theme = import ./themes/gruvbox.nix;
|
||||||
|
|
||||||
|
@ -87,7 +87,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
defaultConfiguration = host: ulib.systemConfiguration {
|
defaultConfiguration = host: abstractions.systemConfiguration {
|
||||||
nix.gc = {
|
nix.gc = {
|
||||||
automatic = true;
|
automatic = true;
|
||||||
dates = "daily";
|
dates = "daily";
|
||||||
|
@ -121,16 +121,18 @@
|
||||||
inherit upkgs ulib;
|
inherit upkgs ulib;
|
||||||
};
|
};
|
||||||
|
|
||||||
importConfiguration = host: lib.nixosSystem {
|
importConfigurations = tools.recursiveUpdateMap (host: {
|
||||||
inherit specialArgs;
|
nixosConfigurations.${host} = lib.nixosSystem {
|
||||||
|
inherit specialArgs;
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
homeManager.nixosModules.default
|
homeManager.nixosModules.default
|
||||||
(defaultConfiguration host)
|
(defaultConfiguration host)
|
||||||
./machines/${host}
|
./machines/${host}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
in {
|
});
|
||||||
nixosConfigurations.enka = importConfiguration "enka";
|
in importConfigurations [
|
||||||
});
|
"enka"
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue