hosts: add PW05CH3L
Add a NixOS module for the PW05CH3L host, and start to separate `pc` and `workstation` as a lot of `flake.modules.nixos.pc` isn't needed in WSL. This probably won't be the final implementation, but it works for now.
This commit is contained in:
parent
556de5e482
commit
451a624b76
5 changed files with 43 additions and 18 deletions
|
@ -6,7 +6,8 @@
|
||||||
}:
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
flake.modules.nixos.pc = {
|
flake.modules.nixos = {
|
||||||
|
workstation = {
|
||||||
imports = [ inputs.home-manager.nixosModules.home-manager ];
|
imports = [ inputs.home-manager.nixosModules.home-manager ];
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
|
@ -26,8 +27,12 @@
|
||||||
)
|
)
|
||||||
|
|
||||||
config.flake.modules.homeManager.base
|
config.flake.modules.homeManager.base
|
||||||
config.flake.modules.homeManager.gui
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pc.home-manager.users.${config.flake.meta.owner.username}.imports = [
|
||||||
|
config.flake.modules.homeManager.gui
|
||||||
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
7
modules2/hosts/PW05CH3L/imports.nix
Normal file
7
modules2/hosts/PW05CH3L/imports.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{ config, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
flake.modules.nixos."hosts/PW05CH3L".imports = with config.flake.modules.nixos; [
|
||||||
|
workstation
|
||||||
|
];
|
||||||
|
}
|
|
@ -61,7 +61,10 @@
|
||||||
modules = [ config.flake.modules.nixos."hosts/${hostname}" ];
|
modules = [ config.flake.modules.nixos."hosts/${hostname}" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
PW05CH3L = mkNixosConfiguration { hostname = "PW05CH3L"; };
|
PW05CH3L = mkNixosConfiguration rec {
|
||||||
|
hostname = "PW05CH3L";
|
||||||
|
modules = [ config.flake.modules.nixos."hosts/${hostname}" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
7
modules2/pc.nix
Normal file
7
modules2/pc.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{ config, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
flake.modules.nixos.pc.imports = with config.flake.modules.nixos; [
|
||||||
|
workstation
|
||||||
|
];
|
||||||
|
}
|
3
modules2/workstation.nix
Normal file
3
modules2/workstation.nix
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
flake.modules.nixos.workstation = {};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue