From a9c16e637826592405edfd22b5b6a70f2a9bb3b2 Mon Sep 17 00:00:00 2001 From: outremonde Date: Wed, 11 Jun 2025 15:17:50 -0400 Subject: overhauled modules dir Former-commit-id: 7bfb3299e08797282f681dbbe572cb3294af4696 --- modules/user/aesthetics/default.nix | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) (limited to 'modules/user/aesthetics/default.nix') diff --git a/modules/user/aesthetics/default.nix b/modules/user/aesthetics/default.nix index 9bcf496..c49a198 100644 --- a/modules/user/aesthetics/default.nix +++ b/modules/user/aesthetics/default.nix @@ -1,6 +1,15 @@ -{ config, pkgs, lib, ... }: let +{ + config, + pkgs, + lib, + ... +}: let cfg = config.aesthetics; in { + imports = [ + ./targets + ./themes + ]; options.aesthetics = { enable = lib.mkEnableOption "aesthetics"; theme = lib.mkOption { @@ -48,16 +57,17 @@ in { type = lib.types.str; default = "18"; description = "The size of the font to use for large text."; - }; + }; }; }; scheme = let - mkHexOption = {}: lib.mkOption { - type = lib.types.str; - default = ""; - example = "ffffff"; - description = "A hex color"; - }; + mkHexOption = {}: + lib.mkOption { + type = lib.types.str; + default = ""; + example = "ffffff"; + description = "A hex color"; + }; in { base00 = mkHexOption {}; base01 = mkHexOption {}; @@ -85,7 +95,7 @@ in { config = lib.mkIf cfg.enable { aesthetics.themes.${cfg.theme}.enable = true; - home.packages = [ cfg.font.package ]; + home.packages = [cfg.font.package]; fonts.fontconfig.enable = true; }; } -- cgit v1.2.3