Nix-Config/modules/home/default.nix

20 lines
No EOL
438 B
Nix

{ inputs, config, lib, pkgs, ... }:
with lib;
let
cfg = config.nyxs-nix.services.home;
in {
options.nyxs-nix.services.home = with lib.types; {
enable = mkEnableOption "Enable Home Manager";
};
config = mkIf cfg.enable {
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users = {
"nyxerinys" = import ./nyxerinys;
};
extraSpecialArgs = { inherit inputs; };
};
};
}