mirror of
https://github.com/RGBCube/ncc
synced 2025-07-29 19:17:45 +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
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 = {
|
||||
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"
|
||||
]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue