# home-manager as a NixOS module. Aspects add their home-manager half to the # owner (`home-manager.users..imports`), so every home-manager module # also receives `osConfig` (the NixOS configuration) and `inputs`. { inputs, ... }: { flake.modules.nixos.core = { imports = [ inputs.home-manager.nixosModules.home-manager ]; home-manager = { useGlobalPkgs = true; useUserPackages = true; backupFileExtension = "hm-backup"; # gtk.css and qt6ct.conf may be rewritten by Noctalia's GTK template or qt*ct; # without this a later switch fails ("would be clobbered") on the old .hm-backup. overwriteBackup = true; extraSpecialArgs = { inherit inputs; }; }; }; }