change home manager into a proper module

This commit is contained in:
nyxerinys 2026-06-25 09:29:34 -05:00
parent 27921354a9
commit 0c9f91e92d
3 changed files with 32 additions and 11 deletions

View file

@ -1,16 +1,30 @@
{ inputs, ... }:
{
{ inputs, config, lib, ... }:
with lib;
let
cfg = config.nyxs-nix.services.home;
in {
imports = [
inputs.home-manager.darwinModules.home-manager
];
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users = {
"nyxerinys" = import ./nyxerinys;
options.nyxs-nix.services.home = with types; {
enable = mkEnableOption "Enable the vrrp quotes service";
isMacOS = mkOption {
type = bool;
default = false;
description = "is this device running on macos";
};
};
config = mkIf cfg.enable {
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users = {
"nyxerinys" = import ./nyxerinys;
};
extraSpecialArgs = { inherit inputs; };
};
extraSpecialArgs = { inherit inputs; };
};
}