23.05.upgrade

This commit is contained in:
m3tam3re 2023-05-24 13:46:40 +02:00
parent 49e51ce04d
commit 367570b877
6 changed files with 33 additions and 15 deletions

View File

@ -1 +1,2 @@
{ pkgs, ... }: { home.packages = with pkgs; [ espanso-wayland ]; } { pkgs, ... }: { home.packages = with pkgs; [ espanso-wayland ]; }

View File

@ -7,11 +7,10 @@
]; ];
boot.loader.grub.enable = true; boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
services.openssh.enable = true; services.openssh.enable = true;
services.openssh.passwordAuthentication = false; services.openssh.settings.PasswordAuthentication = false;
networking = { networking = {
hostName = "lkk-nix-1"; hostName = "lkk-nix-1";
firewall.enable = true; firewall.enable = true;

View File

@ -2,7 +2,7 @@
{ {
services.gitea = { services.gitea = {
enable = true; enable = true;
rootUrl = "https://code.lanakk.com"; settings.server.ROOT_URL = "https://code.lanakk.com";
lfs.enable = true; lfs.enable = true;
dump = { dump = {
enable = true; enable = true;

View File

@ -0,0 +1,6 @@
{ config, pkgs, ... }: {
services.metabase = {
enable = true;
listen.port = 3000;
}

View File

@ -5,9 +5,11 @@
guiAddress = "0.0.0.0:8384"; guiAddress = "0.0.0.0:8384";
overrideDevices = true; overrideDevices = true;
overrideFolders = true; overrideFolders = true;
settings = {
devices = { devices = {
"LK-DATA" = { "LK-DATA" = {
id = "BI7CMZF-2SGQMXW-RG47HRG-FEH454J-ZTCE544-BXNSCSJ-PXCE7A7-R4CX2Q3"; id =
"BI7CMZF-2SGQMXW-RG47HRG-FEH454J-ZTCE544-BXNSCSJ-PXCE7A7-R4CX2Q3";
}; };
}; };
folders = { folders = {
@ -17,4 +19,5 @@
}; };
}; };
}; };
};
} }

View File

@ -15,7 +15,7 @@
acme = { acme = {
email = "dev@lanakk.com"; email = "dev@lanakk.com";
storage = "/var/lib/traefik/acme.json"; storage = "/var/lib/traefik/acme.json";
tlsChallenge = {}; tlsChallenge = { };
}; };
}; };
}; };
@ -81,10 +81,10 @@
[{ url = "http://localhost:3012/"; }]; [{ url = "http://localhost:3012/"; }];
syncthing.loadBalancer.servers = syncthing.loadBalancer.servers =
[{ url = "http://localhost:8384/"; }]; [{ url = "http://localhost:8384/"; }];
minio.loadBalancer.servers = minio.loadBalancer.servers = [{ url = "http://localhost:9000/"; }];
[{ url = "http://localhost:9000/"; }];
minio-console.loadBalancer.servers = minio-console.loadBalancer.servers =
[{ url = "http://localhost:9001/"; }]; [{ url = "http://localhost:9001/"; }];
metabase.loadBalancer.servers = [{ url = "http://localhost:3013/"; }];
}; };
routers = { routers = {
api = { api = {
@ -255,12 +255,21 @@
service = "littlelink-m3tam3re"; service = "littlelink-m3tam3re";
entrypoints = "websecure"; entrypoints = "websecure";
}; };
metabase = {
rule = "Host(`kpi.lanakk.com`)";
tls = {
certResolver = "godaddy";
domains = "kpi.lanakk.com";
};
service = "metabase";
entrypoints = "websecure";
};
}; };
}; };
}; };
}; };
systemd.services.traefik.serviceConfig = { systemd.services.traefik.serviceConfig = {
EnvironmentFile="${config.age.secrets.traefik-env.path}"; EnvironmentFile = "${config.age.secrets.traefik-env.path}";
}; };
} }