Moved theming modules

This commit is contained in:
Jan-Bulthuis 2025-02-17 15:06:20 +01:00
parent c6cd3018db
commit a68f032fee
23 changed files with 22 additions and 18 deletions

View File

@ -1,5 +1,8 @@
{ ... }: { ... }:
{ {
imports = [ ./custom/default.nix ]; imports = [
./custom/default.nix
./theming/default.nix
];
} }

View File

@ -99,13 +99,13 @@ in
./themes/nord.nix ./themes/nord.nix
]; ];
options.modules.theming.enable = mkEnableOption "theming"; options.desktop.theming =
options.theming =
let let
colors = config.theming.schemeColors; colors = config.theming.schemeColors;
in in
{ {
enable = mkEnableOption "theming";
darkMode = mkOption { darkMode = mkOption {
type = types.bool; type = types.bool;
default = false; default = false;

View File

@ -24,22 +24,21 @@
ente-auth ente-auth
]; ];
# TODO: Move to gpg module # Desktop environments
# programs.gpg = { desktops =
# enable = true; let
# mutableKeys = true; in
# mutableTrust = true; {
# }; "River Dark" = {
# services.gpg-agent = { type = "custom";
# enable = true; theming = { };
# enableSshSupport = true; config = { };
# }; extraConfig = { };
};
};
# Enabled modules # Enabled modules
modules = { modules = {
# Theming
theming.enable = true;
# Window manager # Window manager
river.enable = true; river.enable = true;
waylock.enable = true; waylock.enable = true;
@ -120,11 +119,13 @@
}; };
# Theme configuration # Theme configuration
theming = desktop.theming =
let let
fontpkgs = config.theming.fonts.pkgs; fontpkgs = config.theming.fonts.pkgs;
in in
{ {
enable = true;
# Fonts # Fonts
fonts.serif = fontpkgs."DejaVu Serif"; fonts.serif = fontpkgs."DejaVu Serif";
fonts.sansSerif = fontpkgs."DejaVu Sans"; fonts.sansSerif = fontpkgs."DejaVu Sans";