feat: themes module is sick now

This commit is contained in:
Nick 2025-01-18 17:05:54 -06:00
parent a5ec879db0
commit 00cc80e9e4
31 changed files with 460 additions and 48 deletions

View file

@ -20,7 +20,7 @@ in
GTK = {
application_prefer_dark_theme = true;
cursor_theme_name = lib.mkForce "catppuccin-macchiato-dark-cursors";
font_name = lib.mkForce "${font.name} 11";
font_name = lib.mkForce "${font.name} ${font.size.desktop}";
icon_theme_name = lib.mkForce "Papirus-Dark";
theme_name = lib.mkForce "catppuccin-macchiato-mauve-compact";
};

View file

@ -2,20 +2,20 @@
flake,
config,
...
}: let
inherit
(flake.config.machines.devices)
}:
let
inherit (flake.config.machines.devices)
server
;
inherit
(flake.config.services.instances)
inherit (flake.config.services.instances)
forgejo
web
;
service = forgejo;
localhost = web.localhost.address0;
host = "${service.subdomain}.${web.domains.url1}";
in {
host = "${service.subdomain}.${web.domains.url3}";
in
{
services = {
forgejo = {
enable = true;
@ -70,25 +70,27 @@ in {
};
};
};
sops = let
sopsPath = secret: {
path = "${service.sops.path0}/${service.name}-${secret}";
owner = service.name;
mode = "600";
sops =
let
sopsPath = secret: {
path = "${service.sops.path0}/${service.name}-${secret}";
owner = service.name;
mode = "600";
};
in
{
secrets = builtins.listToAttrs (
map
(secret: {
name = "${service.name}-${secret}";
value = sopsPath secret;
})
[
"smtp"
"database"
]
);
};
in {
secrets = builtins.listToAttrs (
map
(secret: {
name = "${service.name}-${secret}";
value = sopsPath secret;
})
[
"smtp"
"database"
]
);
};
fileSystems."/var/lib/${service.name}" = {
device = service.paths.path0;