Rename modules directory
All checks were successful
/ check (push) Successful in 55s

This commit is contained in:
Oliver Davies 2025-08-18 12:00:00 +01:00
parent a0575bdb2a
commit 703bf836de
210 changed files with 1 additions and 1 deletions

View file

@ -0,0 +1,14 @@
{ config, ... }:
{
flake.modules.homeManager.base = args: {
home = {
homeDirectory = "/home/${config.flake.meta.owner.username}";
username = config.flake.meta.owner.username;
};
programs.home-manager.enable = true;
systemd.user.startServices = "sd-switch";
};
}

View file

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