Lebesque Configuration.

This commit is contained in:
Lorenzo Good 2025-02-03 13:00:31 -06:00
parent b2595f1936
commit 859556d0e6
Signed by: lorenzo
GPG key ID: 7FCD64BD81180ED0
18 changed files with 386 additions and 50 deletions

View file

@ -1,25 +1,25 @@
let
foelib = import ./default.nix;
nixpkgs: withSystem: let
foelib = import ./default.nix nixpkgs withSystem;
in {
mkSystem = nixpkgs: pkgs: hostname: modules:
nixpkgs.lib.nixosSystem {
modules =
[
{
nix.registry = {
nixpkgs.flake = nixpkgs;
p.flake = nixpkgs;
};
nixpkgs.pkgs = pkgs;
mkSystem = hostname: host-platform: modules:
withSystem host-platform
({pkgs, ...}:
nixpkgs.lib.nixosSystem {
modules =
[
{
nix.registry = {
nixpkgs.flake = nixpkgs;
p.flake = nixpkgs;
};
nixpkgs.pkgs = pkgs;
networking.hostname = hostname;
}
]
++ modules
++ foelib.utils.findNixFiles ../nixos;
specialArgs = {
inherit hostname foelib;
};
};
networking.hostName = hostname;
}
]
++ modules;
specialArgs = {
inherit hostname foelib;
};
});
}