mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
19 lines
337 B
Nix
Executable File
19 lines
337 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 ];
|
|
}
|