feat(nixos:appearance): move appearance options to nixos

This commit is contained in:
ooks-io 2024-08-05 17:29:53 +12:00
parent cedeb52103
commit ceb66c03cf
51 changed files with 393 additions and 377 deletions

View file

@ -1,12 +1,15 @@
{
lib,
config,
osConfig,
pkgs,
...
}: let
inherit (lib) mkIf;
fonts = config.ooknet.fonts;
wayland = config.ooknet.wayland;
inherit (osConfig.ooknet.appearance) colorscheme fonts;
inherit (colorscheme) palette;
inherit (config.ooknet) wayland;
inherit (config.lib.formats.rasi) mkLiteral;
in {
config = mkIf (wayland.launcher == "rofi") {
programs.rofi = {
@ -14,10 +17,7 @@ in {
font = "${fonts.monospace.family}";
package = pkgs.rofi-wayland;
terminal = "${config.home.sessionVariables.TERMINAL}";
theme = let
inherit (config.colorscheme) palette;
inherit (config.lib.formats.rasi) mkLiteral;
in {
theme = {
"*" = {
background = mkLiteral "#${palette.base00}";
foreground = mkLiteral "#${palette.base05}";

View file

@ -1,13 +1,14 @@
{
lib,
config,
osConfig,
pkgs,
...
}: let
inherit (config.colorscheme) palette;
inherit (osConfig.ooknet.appearance) colorscheme fonts;
inherit (colorscheme) palette;
inherit (config.ooknet) wayland;
inherit (lib) mkIf;
wayland = config.ooknet.wayland;
fonts = config.ooknet.fonts;
in {
config = mkIf (wayland.launcher == "tofi") {
home.packages = [pkgs.tofi];