24 lines
No EOL
592 B
Nix
24 lines
No EOL
592 B
Nix
{ inputs, config, lib, ... }:
|
|
with lib;
|
|
let
|
|
cfg = config.nyxs-nix.services.home;
|
|
in {
|
|
imports = if pkgs.stdenv.pkgs.stdenv.isLinux
|
|
then [ inputs.home-manager.nixosModules.home-manager ]
|
|
else [ inputs.home-manager.darwinModules.home-manager ];
|
|
|
|
options.nyxs-nix.services.home = with types; {
|
|
enable = mkEnableOption "Enable Home Manager";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
home-manager = {
|
|
useGlobalPkgs = true;
|
|
useUserPackages = true;
|
|
users = {
|
|
"nyxerinys" = import ./nyxerinys;
|
|
};
|
|
extraSpecialArgs = { inherit inputs; };
|
|
};
|
|
};
|
|
} |