Build home in Linux, too

This commit is contained in:
Greg Hellings
2023-06-28 22:51:18 -05:00
parent f35f7207d5
commit e3babb3ac8
4 changed files with 51 additions and 37 deletions
+30 -9
View File
@@ -3,27 +3,48 @@ let
wsl = args: (unstable (args // { extraMods = [ inputs.wsl.nixosModules.wsl ]; }));
unstable = args: (machine (args // { channel = inputs.nixunstable; }));
machine = {
system ? "x86_64-linux",
name,
channel ? inputs.nixstable,
extraMods ? []
extraMods ? [],
gnome ? false,
gui ? false,
name,
system ? "x86_64-linux"
}:
let
nixpkgs = channel;
in nixpkgs.lib.nixosSystem {
nixpkgs = import channel {
inherit system;
};
in channel.lib.nixosSystem {
inherit system;
specialArgs = { inherit nixpkgs; };
modules = [
{ nixpkgs.overlays = overlays; }
{
nixpkgs.overlays = overlays;
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.greg = import ../home/home.nix;
home-manager.extraSpecialArgs = {
inherit gnome gui inputs overlays;
home = "/home/greg";
};
}
inputs.agenix.nixosModules.default
inputs.hm.nixosModules.home-manager
../modules-all
../modules-linux
./${name}
] ++ extraMods;
specialArgs = { inherit nixpkgs; };
};
in {
"2maccabees" = unstable { system = "aarch64-linux"; name = "2maccabees"; };
jude = unstable { name = "jude"; };
"2maccabees" = unstable {
system = "aarch64-linux";
name = "2maccabees";
};
jude = unstable {
name = "jude";
gnome = true;
gui = true;
};
icdm-root = unstable { name = "icdm-root"; };
linode = machine { name = "linode"; };
linodeeu = machine { name = "linodeeu"; };