config/modules/home/wms/niri/default.nix

23 lines
432 B
Nix
Raw Normal View History

2025-04-07 13:07:15 -04:00
{
2025-05-28 16:55:13 -04:00
options,
2025-04-07 13:07:15 -04:00
config,
2025-05-28 16:55:13 -04:00
lib,
2025-04-07 13:07:15 -04:00
inputs,
2025-05-28 16:55:13 -04:00
pkgs,
2025-04-07 13:07:15 -04:00
...
}:
with lib;
2025-05-28 16:55:13 -04:00
with lib.custom; {
2025-04-07 13:07:15 -04:00
options.wms.niri = with types; {
enable = mkBoolOpt false "Enable niri";
};
2025-05-28 16:55:13 -04:00
imports = optionals (pkgs.stdenv.isLinux) [
./config.nix
];
2025-04-07 13:07:15 -04:00
2025-05-28 16:55:13 -04:00
# For Darwin, just provide empty configuration
config = mkIf (config.wms.niri.enable && pkgs.stdenv.isDarwin) {
# Empty configuration for Darwin - module is effectively disabled
2025-04-07 13:07:15 -04:00
};
2025-05-28 16:55:13 -04:00
}