feat (hosts/mystra/forgejo)!: theming attempt
This commit is contained in:
parent
7d9c3cce20
commit
a82926cfcf
4 changed files with 38 additions and 1 deletions
|
|
@ -6,7 +6,7 @@
|
||||||
../../nixos/server.nix
|
../../nixos/server.nix
|
||||||
./nginx.nix
|
./nginx.nix
|
||||||
./taskd.nix
|
./taskd.nix
|
||||||
./forgejo.nix
|
./forgejo
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [
|
networking.firewall.allowedTCPPorts = [
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,24 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
service.DISABLE_REGISTRATION = true;
|
service.DISABLE_REGISTRATION = true;
|
||||||
|
|
||||||
|
ui = {
|
||||||
|
DEFAULT_THEME = "custom";
|
||||||
|
THEMES = "forgejo-auto,forgejo-light,forgejo-dark,custom";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
systemd.tmpfiles.rules =
|
||||||
|
let
|
||||||
|
forgejo-dir = config.services.forgejo.customDir;
|
||||||
|
in
|
||||||
|
[
|
||||||
|
"d '${forgejo-dir}/templates' - forgejo forgejo - -"
|
||||||
|
"d '${forgejo-dir}/public' - forgejo forgejo - -"
|
||||||
|
"d '${forgejo-dir}/public/assets' - forgejo forgejo - -"
|
||||||
|
"d '${forgejo-dir}/public/assets/css' - forgejo forgejo - -"
|
||||||
|
"C+ '${forgejo-dir}/public/assets/css/theme-custom.css' - forgejo forgejo - ${./theme-custom.css}"
|
||||||
|
"C+ '${forgejo-dir}/templates/home.tmpl' - forgejo forgejo - ${./home.tpl}"
|
||||||
|
];
|
||||||
}
|
}
|
||||||
14
hosts/mystra/forgejo/home.tmpl
Normal file
14
hosts/mystra/forgejo/home.tmpl
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
[[:Template:Template "base/head" .]]
|
||||||
|
<div role="main" aria-label="[[:Template:If .IsSigned]][[:Template:Ctx.Locale.Tr "dashboard"]]
|
||||||
|
[[:Template:Else]][[:Template:Ctx.Locale.Tr "home"]][[:Template:End]]" class="page-content home">
|
||||||
|
<div class="tw-mb-8 tw-px-8">
|
||||||
|
<div class="center">
|
||||||
|
<div class="hero">
|
||||||
|
<h1 class="ui icon header title">
|
||||||
|
Maïga's git forge.
|
||||||
|
</h1>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
[[:Template:Template "base/footer" .]]
|
||||||
5
hosts/mystra/forgejo/theme-custom.css
Normal file
5
hosts/mystra/forgejo/theme-custom.css
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
@import "./theme-forgejo-auto.css";
|
||||||
|
|
||||||
|
:root {
|
||||||
|
--fonts-override: monospace;
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue