mirror of
https://github.com/kaesaecracker/nixos-configuration.git
synced 2025-01-31 07:50:14 +01:00
26 lines
447 B
Nix
26 lines
447 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: let
|
|
cfg = config.my.home;
|
|
in {
|
|
imports =
|
|
[
|
|
./vinzenz.nix
|
|
./ronja.nix
|
|
# enable home manager
|
|
]
|
|
++ lib.optional (builtins.pathExists <home-manager/nixos>) <home-manager/nixos>;
|
|
|
|
options.my.home = {
|
|
enable = lib.mkEnableOption "my home management";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
home-manager.useUserPackages = true;
|
|
home-manager.useGlobalPkgs = true;
|
|
};
|
|
}
|