mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
33 lines
1.3 KiB
Nix
33 lines
1.3 KiB
Nix
{ self, inputs, config, lib, outputs, globals, nodes, minimal, configName, ... }:
|
|
{
|
|
options.swarselmodules.home-manager = lib.mkEnableOption "home-manager";
|
|
config = lib.mkIf config.swarselmodules.home-manager {
|
|
home-manager = lib.mkIf config.swarselsystems.withHomeManager {
|
|
useGlobalPkgs = true;
|
|
useUserPackages = true;
|
|
verbose = true;
|
|
users.${config.swarselsystems.mainUser}.imports = [
|
|
inputs.nix-index-database.homeModules.nix-index
|
|
inputs.sops-nix.homeManagerModules.sops
|
|
inputs.spicetify-nix.homeManagerModules.default
|
|
inputs.swarsel-modules.homeModules.default
|
|
{
|
|
imports = [
|
|
"${self}/profiles/home"
|
|
"${self}/modules/home"
|
|
{
|
|
swarselprofiles = {
|
|
minimal = lib.mkIf minimal true;
|
|
};
|
|
}
|
|
];
|
|
# node = {
|
|
# secretsDir = if (!config.swarselsystems.isNixos) then ../../../hosts/home/${configName}/secrets else ../../../hosts/nixos/${configName}/secrets;
|
|
# };
|
|
home.stateVersion = lib.mkDefault config.system.stateVersion;
|
|
}
|
|
];
|
|
extraSpecialArgs = { inherit (inputs) self nixgl; inherit inputs outputs globals nodes minimal configName; };
|
|
};
|
|
};
|
|
}
|