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`
24 lines
620 B
Nix
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};
|
|
};
|
|
};
|
|
} |