Build home in Linux, too
This commit is contained in:
+30
-9
@@ -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"; };
|
||||
|
||||
Reference in New Issue
Block a user