helm/modules/themes/default.nix

16 lines
449 B
Nix
Raw Normal View History

# Theme modules are a special beast. They're the only modules that are deeply
# intertwined with others, and are solely responsible for aesthetics. Disabling
# a theme module should never leave a system non-functional.
2019-08-06 10:56:54 -07:00
{ config, lib, ... }:
2020-03-28 22:48:43 -07:00
with lib;
with lib.my;
let cfg = config.modules.themes;
in {
assertions = [{
assertion = countAttrs (_: x: x.enable) cfg < 2;
message = "Can't have more than one theme enabled at a time";
}];
2019-08-06 10:56:54 -07:00
}