mirror of
https://github.com/kaesaecracker/nixos-configuration.git
synced 2025-01-18 18:40:14 +01:00
25 lines
432 B
Nix
25 lines
432 B
Nix
modulesCfg: {
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: let
|
|
enableHomeManager = modulesCfg.enableHomeManager;
|
|
in {
|
|
options.my = {
|
|
modulesCfg.enableHomeManager = lib.mkEnableOption "enable home manager";
|
|
enabledUsers = lib.mkOption {
|
|
type = lib.types.listOf lib.types.str;
|
|
};
|
|
};
|
|
|
|
imports =
|
|
[
|
|
./vinzenz.nix
|
|
./ronja.nix
|
|
]
|
|
++ lib.optionals enableHomeManager [
|
|
./home-manager.nix
|
|
];
|
|
}
|