flocon/hosts/default.nix
Anthony Rodriguez 6d643f903c
treewide: import custom lib as lib', simplify mkSystem
I decided to import my custom lib as lib' as it makes it easier to read
and differentiate from lib. I also removed unnecessary imports from my
mkSystem function (that I actually put directly inside
hosts/default.nix, as that made more sense), since system is not needed
anymore (already set in hardware-configuration.nix), and the only
required argument is inputs, that will be then parsed automatically by
nixosSystem.
2024-11-21 14:54:22 +01:00

29 lines
493 B
Nix

{inputs, ...}: let
lib' = import ../lib;
mkSystem = args:
inputs.nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs lib';};
modules = args.modules or [];
};
in {
vamos = mkSystem {
modules = [
./vamos
../modules
inputs.nixos-hardware.nixosModules.framework-13-7040-amd
];
};
solaire = mkSystem {
modules = [
./solaire
../modules
];
};
anastacia = mkSystem {
modules = [
./anastacia
];
};
}