2021-11-25 11:55:30 +00:00
|
|
|
# Themes are your graphical sessions.
|
|
|
|
# It also contains your aesthetics even specific workflow and whatnots.
|
|
|
|
# You can also show your desktop being modularized like this.
|
2020-08-16 08:33:44 +00:00
|
|
|
{ config, options, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.modules.themes;
|
2021-11-25 11:55:30 +00:00
|
|
|
in
|
|
|
|
{
|
2020-10-20 15:56:10 +00:00
|
|
|
assertions = [{
|
2021-11-25 11:55:30 +00:00
|
|
|
assertion = (lib.countAttrs (_: theme: theme.enable) cfg) < 2;
|
|
|
|
message = "Can't have more than one theme enabled at any given time.";
|
2020-10-20 15:56:10 +00:00
|
|
|
}];
|
|
|
|
|
2021-11-25 11:55:30 +00:00
|
|
|
imports = lib.mapAttrsToList (n: v: import v) (lib.filterAttrs (n: v: n != "default") (lib.filesToAttr ./.));
|
2020-08-16 08:33:44 +00:00
|
|
|
}
|