# modules/features/home-manager.nix — home-manager as a NixOS module: the# user's home (modules/home/default.nix) is built and activated by the same# `nh os switch` as the system. There is no standalone home-manager profile.{ self, inputs, ... }:
{
flake.nixosModules.home-manager= { user, identity, ... }:
{
imports= [ inputs.home-manager.nixosModules.home-manager ];
home-manager= {
useGlobalPkgs=true;
useUserPackages=true;
backupFileExtension="hm-bak";
extraSpecialArgs= { inherit inputs user identity; };
# The Hyprland and Caelestia home-manager modules only declare options;# modules/home/{hyprland,caelestia}.nix decide whether they do anything# (daemon.desktop.hyprland.enable).sharedModules= [
inputs.hyprland.homeManagerModules.default
inputs.caelestia-shell.homeManagerModules.default
];
users.${user}= self.homeModules.daemonsec;
};
}
;
}