when used either with nixos (no home-manager) or home-manager standalone, `features.applications.<name>.enable` options still perform some functionality, rather than assuming a full nixos + home-manager setup like before
28 lines
910 B
Nix
28 lines
910 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";
|
|
users.grey = self.homeModules.${config.info.hostName};
|
|
sharedModules = [
|
|
{ features.nixos.stylix.enable = lib.mkDefault config.features.nixos.stylix.enable; }
|
|
( lib.mkIf (config.features.nixos.stylix.enable)
|
|
( if (config.features.applications.gui.floorp.enable) then {
|
|
stylix.targets.floorp.profileNames = [ "default" ];
|
|
} else {})
|
|
)
|
|
];
|
|
};
|
|
};
|
|
} |