nixos-config/modules/nixos/themes/default.nix
Gabriel Arazas 3a022a374a Restructure the modules
I think this is better for separating modules explicitly. This is also
considered as there are similar objects between modules (e.g., NixOS
and home-manager modules and users).

Revert users module to old position
2021-12-06 17:03:39 +08:00

17 lines
531 B
Nix

# 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.
{ config, options, lib, pkgs, ... }:
let
cfg = config.modules.themes;
in
{
assertions = [{
assertion = (lib.countAttrs (_: theme: theme.enable) cfg) < 2;
message = "Can't have more than one theme enabled at any given time.";
}];
imports = lib.mapAttrsToList (n: v: import v) (lib.filterAttrs (n: v: n != "default") (lib.filesToAttr ./.));
}