diff --git a/nixos/default.nix b/nixos/default.nix index 6645b9068c0a..8f3c29d91980 100644 --- a/nixos/default.nix +++ b/nixos/default.nix @@ -34,6 +34,7 @@ let home.homeDirectory = config.users.users.${name}.home; }; }) + ({ ... }: { imports = cfg.sharedModules; }) ]; }; @@ -65,6 +66,16 @@ in { ''; }; + sharedModules = mkOption { + type = types.listOf + (types.anything // { description = "Home Manager module"; }); + default = [ ]; + example = [ /path/to/module.nix ]; + description = '' + Home Manager modules that are shared among all users. + ''; + }; + verbose = mkEnableOption "verbose output on activation"; users = mkOption {