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:
Oliver Davies 2025-07-28 19:38:17 +01:00
parent 556de5e482
commit 451a624b76
5 changed files with 43 additions and 18 deletions

View file

@ -6,28 +6,33 @@
}:
{
flake.modules.nixos.pc = {
imports = [ inputs.home-manager.nixosModules.home-manager ];
flake.modules.nixos = {
workstation = {
imports = [ inputs.home-manager.nixosModules.home-manager ];
home-manager = {
extraSpecialArgs.hasGlobalPkgs = true;
useGlobalPkgs = true;
home-manager = {
extraSpecialArgs.hasGlobalPkgs = true;
useGlobalPkgs = true;
# https://github.com/nix-community/home-manager/issues/6770
# useUserPackages = true;
# https://github.com/nix-community/home-manager/issues/6770
# useUserPackages = true;
users.${config.flake.meta.owner.username}.imports = [
(
{ osConfig, ... }:
users.${config.flake.meta.owner.username}.imports = [
(
{ osConfig, ... }:
{
home.stateVersion = lib.mkForce osConfig.system.stateVersion;
}
)
{
home.stateVersion = lib.mkForce osConfig.system.stateVersion;
}
)
config.flake.modules.homeManager.base
config.flake.modules.homeManager.gui
];
config.flake.modules.homeManager.base
];
};
};
pc.home-manager.users.${config.flake.meta.owner.username}.imports = [
config.flake.modules.homeManager.gui
];
};
}