flocon/modules/nix/core/home-manager.nix
Anthony Rodriguez 99b6b41de3
treewide: migrate config/system/core to modules
Moved everything from core into modules. I want to get all the NixOS
stuff moved first, and do home-manager after. I used the different
profiles to disable configuration that might break my server, as it has
its own configuration already. This will need to be refactored later, as
I want to ultimately only use the local module system.
2025-01-14 12:01:33 +01:00

34 lines
633 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;
};
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;
};
};
}