nixos-configuration/modules/home/default.nix

26 lines
447 B
Nix
Raw Normal View History

2023-09-09 15:11:49 +02:00
{
config,
pkgs,
lib,
...
}: let
2023-09-09 15:11:49 +02:00
cfg = config.my.home;
in {
2023-09-11 18:46:47 +02:00
imports =
[
./vinzenz.nix
./ronja.nix
# enable home manager
]
++ lib.optional (builtins.pathExists <home-manager/nixos>) <home-manager/nixos>;
2023-09-09 15:11:49 +02:00
options.my.home = {
enable = lib.mkEnableOption "my home management";
};
config = lib.mkIf cfg.enable {
home-manager.useUserPackages = true;
home-manager.useGlobalPkgs = true;
};
}