Merge branch 'main' of ssh://pts-paper.de:62/SCS/nixos-server-conf
This commit is contained in:
commit
176c1cc354
4 changed files with 38 additions and 5 deletions
|
@ -1,5 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
openssl passwd -6 $1 > dev_user_password.pw
|
|
||||||
|
|
||||||
colmena apply
|
|
|
@ -28,6 +28,20 @@ in
|
||||||
acceptTerms = true;
|
acceptTerms = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
systemd.services = {
|
||||||
|
copytmpl = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
path = [
|
||||||
|
"/run/current-system/sw/bin"
|
||||||
|
];
|
||||||
|
serviceConfig = {
|
||||||
|
Type = "simple";
|
||||||
|
ExecStart = "${pkgs.coreutils}/bin/mkdir -p /var/lib/forgejo/custom/templates/ && ${pkgs.coreutils}/bin/cp ${./home.tmpl} /var/lib/forgejo/custom/templates/home.tmpl";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
nginx = {
|
nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -80,6 +94,8 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
openssh = {
|
openssh = {
|
||||||
ports = [ 62 ];
|
ports = [ 62 ];
|
||||||
settings = {
|
settings = {
|
||||||
|
|
20
home.tmpl
Normal file
20
home.tmpl
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
{{template "base/head" .}}
|
||||||
|
<div role="main" aria-label="{{if .IsSigned}}{{ctx.Locale.Tr " dashboard"}}{{else}}{{ctx.Locale.Tr "home" }}{{end}}"
|
||||||
|
class="page-content home">
|
||||||
|
<div class="tw-mb-8 tw-px-8">
|
||||||
|
<div class="center">
|
||||||
|
<img class="logo" width="220" height="220" src="{{AssetUrlPrefix}}/img/logo.svg" alt="{{ctx.Locale.Tr "
|
||||||
|
logo"}}">
|
||||||
|
<div class="hero">
|
||||||
|
<h1 class="ui icon header title">
|
||||||
|
{{AppDisplayName}}
|
||||||
|
</h1>
|
||||||
|
<h2>{{ctx.Locale.Tr "startpage.app_desc"}}</h2>
|
||||||
|
<h2>Das ist der Entwicklungsserver der PTS.</h2>
|
||||||
|
<h2>Zur PTS-Website geht es <a href="https://www.ptspaper.de/de/">hier</a></h2>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{template "home_forgejo" .}}
|
||||||
|
</div>
|
||||||
|
{{template "base/footer" .}}
|
|
@ -20,6 +20,8 @@
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
git
|
git
|
||||||
htop
|
htop
|
||||||
|
inetutils
|
||||||
|
msmtp
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
|
|
Loading…
Reference in a new issue