Files
nix-flake/modules/features/nixos/home-manager.nix
T
greyweather 06e958ae71 fix problems rebuilding, make niri and noctalia more HM friendly
added `inputs` to `extraSpecialArgs`, giving homeModules access to helper functions
cleaned up the logic for the stylix file, removing the final `sharedModules` in the process in favour of `home-manager.users.grey`
2026-08-30 00:31:13 +01:00

24 lines
620 B
Nix

{ inputs, self, ... }: {
imports = [
inputs.home-manager.flakeModules.home-manager
];
flake.nixosModules.global = { pkgs, lib, config, ... }: {
imports = [
inputs.home-manager.nixosModules.default
];
options.features.nixos.home-manager.enable = lib.mkEnableOption "home-manager";
config.home-manager = lib.mkIf (config.features.nixos.home-manager.enable) {
useGlobalPkgs = true;
useUserPackages = true;
backupFileExtension = "bak";
extraSpecialArgs = {
inherit inputs;
};
users.grey = self.homeModules.${config.info.hostName};
};
};
}