nixos-config/modules/themes/default.nix

19 lines
333 B
Nix
Raw Normal View History

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