30 lines
No EOL
640 B
Nix
30 lines
No EOL
640 B
Nix
{ inputs, config, lib, ... }:
|
|
with lib;
|
|
let
|
|
cfg = config.nyxs-nix.services.home;
|
|
in {
|
|
imports = [
|
|
inputs.home-manager.darwinModules.home-manager
|
|
];
|
|
|
|
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; };
|
|
};
|
|
};
|
|
} |