flocon/modules/nix/core/home-manager.nix
Anthony Rodriguez 09a07b15da
treewide: config/home-manager -> modules/hm
Moved every remaining home-manager piece of configuration to its own hm
module.
2025-01-15 22:56:32 +01:00

37 lines
712 B
Nix

{
inputs,
lib,
config,
...
}: let
inherit (config.local.systemVars) username;
in {
imports = [
inputs.home-manager.nixosModules.default
];
config = lib.mkIf (!config.local.profiles.server.enable) {
home-manager = {
backupFileExtension = "backup";
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = {inherit inputs;};
sharedModules = [../../hm];
};
home-manager.users.${username} = {
home = {
homeDirectory = "/home/${username}";
stateVersion = "24.05";
};
programs.home-manager.enable = true;
};
programs = {
# make HM-managed GTK stuff work
dconf.enable = true;
};
};
}