mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 10:58:02 +00:00
539a798009
I revisited NixOS this week and I've rewritten my NixOS config from scratch. I must say I really like Nix flakes. For whatever reason it just clicked and I understood more programming with Nix despite my previous experience which is not good. Could be just the fact I had a break for a long time from completely using Nix (I still used it on non-NixOS distros). Eh... I still took some things from the original inspiration of this configuration so there's that.
17 lines
531 B
Nix
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 ./.));
|
|
}
|