home-manager.nix (971B)
1 # modules/features/home-manager.nix — home-manager as a NixOS module: the 2 # user's home (modules/home/default.nix) is built and activated by the same 3 # `nh os switch` as the system. There is no standalone home-manager profile. 4 { self, inputs, ... }: 5 { 6 flake.nixosModules.home-manager = 7 { user, identity, ... }: 8 { 9 imports = [ inputs.home-manager.nixosModules.home-manager ]; 10 11 home-manager = { 12 useGlobalPkgs = true; 13 useUserPackages = true; 14 backupFileExtension = "hm-bak"; 15 extraSpecialArgs = { inherit inputs user identity; }; 16 # The Hyprland and Caelestia home-manager modules only declare options; 17 # modules/home/{hyprland,caelestia}.nix decide whether they do anything 18 # (daemon.desktop.hyprland.enable). 19 sharedModules = [ 20 inputs.hyprland.homeManagerModules.default 21 inputs.caelestia-shell.homeManagerModules.default 22 ]; 23 users.${user} = self.homeModules.daemonsec; 24 }; 25 } 26 ; 27 }