2023-06-21 10:58:40 -05:00
|
|
|
{ inputs, overlays, ... }:
|
2023-05-11 09:32:05 -05:00
|
|
|
let
|
2024-10-03 11:26:39 -05:00
|
|
|
wsl = args: (unstable (args // { extraMods = [ inputs.wsl.nixosModules.wsl ]; }));
|
|
|
|
|
unstable = args: (machine (args // {
|
|
|
|
|
channel = inputs.nixunstable;
|
|
|
|
|
hm = inputs.hmunstable;
|
|
|
|
|
nixvim = inputs.nixvimunstable;
|
|
|
|
|
}));
|
|
|
|
|
machine =
|
|
|
|
|
{ channel ? inputs.nixstable
|
|
|
|
|
, extraMods ? [ ]
|
|
|
|
|
, name
|
|
|
|
|
, system ? "x86_64-linux"
|
|
|
|
|
, hm ? inputs.hm
|
|
|
|
|
, nixvim ? inputs.nixvimstable
|
|
|
|
|
,
|
|
|
|
|
}:
|
|
|
|
|
let
|
|
|
|
|
nixpkgs = import channel {
|
|
|
|
|
inherit system;
|
|
|
|
|
};
|
|
|
|
|
in
|
|
|
|
|
channel.lib.nixosSystem {
|
|
|
|
|
inherit system;
|
|
|
|
|
specialArgs = { inherit nixpkgs inputs overlays; };
|
|
|
|
|
modules = [
|
|
|
|
|
{
|
|
|
|
|
nixpkgs.overlays = overlays;
|
|
|
|
|
home-manager = {
|
|
|
|
|
useGlobalPkgs = true;
|
|
|
|
|
useUserPackages = true;
|
|
|
|
|
users.greg = import ../home/home.nix;
|
|
|
|
|
extraSpecialArgs = {
|
|
|
|
|
inherit inputs overlays nixvim;
|
|
|
|
|
home = "/home/greg";
|
|
|
|
|
host = name;
|
|
|
|
|
};
|
|
|
|
|
backupFileExtension = "bkp";
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
inputs.agenix.nixosModules.default
|
|
|
|
|
hm.nixosModules.home-manager
|
|
|
|
|
inputs.self.modules.nixosModule
|
|
|
|
|
inputs.nurpkgs.nixosModules.nur
|
|
|
|
|
./${name}
|
|
|
|
|
] ++ extraMods;
|
|
|
|
|
};
|
|
|
|
|
in
|
|
|
|
|
{
|
|
|
|
|
genesis = machine { name = "genesis"; };
|
|
|
|
|
exodus = unstable { name = "exodus"; };
|
|
|
|
|
jude = unstable { name = "jude"; };
|
|
|
|
|
icdm-root = unstable { name = "icdm-root"; };
|
|
|
|
|
linode = machine { name = "linode"; };
|
|
|
|
|
hosea = unstable { name = "hosea"; };
|
|
|
|
|
jeremiah = unstable { name = "jeremiah"; };
|
|
|
|
|
myself = unstable { name = "myself"; };
|
|
|
|
|
iso = machine { name = "iso"; };
|
|
|
|
|
iso-beta = unstable { name = "iso"; };
|
|
|
|
|
# nix build '.#nixosConfigurations.wsl.config.system.build.installer'
|
|
|
|
|
nixos = wsl { name = "wsl"; system = "aarch64-linux"; };
|
|
|
|
|
# nix build '.#nixosConfigurations.wsl-aarch.config.system.build.installer'
|
|
|
|
|
nixos-arm = wsl { name = "wsl"; system = "aarch64-linux"; };
|
2023-05-11 09:32:05 -05:00
|
|
|
}
|