nixos-config/modules/themes/default.nix
2020-10-20 23:59:30 +08:00

19 lines
333 B
Nix
Executable File

{ config, options, lib, pkgs, ... }:
with lib;
let
cfg = config.modules.themes;
my = import ../../lib { inherit pkgs; lib = lib; };
in
{
assertions = [{
assertion = my.countAttrs (_: x: x.enable) cfg < 2;
message = "Can't have more than one theme enabled at a time";
}];
imports = [
./fair-and-square
];
}