feat: replace buku with selfhosted linkwarden.
This commit is contained in:
parent
32e68fb934
commit
60fbe35de3
9 changed files with 84 additions and 4 deletions
|
|
@ -14,7 +14,6 @@
|
|||
age
|
||||
ffmpeg
|
||||
imagemagick
|
||||
buku
|
||||
unzip
|
||||
p7zip
|
||||
aria2
|
||||
|
|
|
|||
|
|
@ -55,8 +55,6 @@
|
|||
free = "free -mht";
|
||||
# nnn on crack
|
||||
nnn = ''LC_COLLATE="C" nnn -xeaiH'';
|
||||
# Buku powerup
|
||||
b = "buku -p";
|
||||
# fzf shenanigans
|
||||
vif = ''nvim $(fzf --preview="bat --color=always {}")'';
|
||||
emacs = "emacs --init-dir ~/.config/emacs";
|
||||
|
|
|
|||
|
|
@ -10,5 +10,6 @@
|
|||
./traefik.nix
|
||||
./home-assistant.nix
|
||||
./mosquitto.nix
|
||||
./linkwarden.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -86,6 +86,7 @@
|
|||
''"wallos.home.cronyakatsuki.xyz IN A 192.168.0.5"''
|
||||
''"assistant.home.cronyakatsuki.xyz IN A 192.168.0.5"''
|
||||
''"ddns.home.cronyakatsuki.xyz IN A 192.168.0.5"''
|
||||
''"linkwarden.home.cronyakatsuki.xyz IN A 192.168.0.5"''
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
|
|||
26
modules/servers/tyr/linkwarden.nix
Normal file
26
modules/servers/tyr/linkwarden.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{config, ...}: {
|
||||
services.linkwarden = {
|
||||
enable = true;
|
||||
secretFiles = {
|
||||
NEXTAUTH_SECRET = config.age.secrets.linkwarden.path;
|
||||
POSTGRES_PASSWORD = config.age.secrets.linkwarden-db.path;
|
||||
};
|
||||
};
|
||||
|
||||
services.traefik.dynamicConfigOptions.http = {
|
||||
services.linkwarden.loadBalancer.servers = [
|
||||
{
|
||||
url = "http://localhost:3000";
|
||||
}
|
||||
];
|
||||
|
||||
routers.linkwarden = {
|
||||
rule = "Host(`linkwarden.home.cronyakatsuki.xyz`)";
|
||||
tls = {
|
||||
certResolver = "porkbun";
|
||||
};
|
||||
service = "linkwarden";
|
||||
entrypoints = "websecure";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
{config, ...}: {
|
||||
age = {
|
||||
secrets = {
|
||||
wg-tyr = {
|
||||
|
|
@ -33,6 +33,13 @@
|
|||
group = "nogroup";
|
||||
symlink = false;
|
||||
};
|
||||
linkwarden = {
|
||||
file = ../../../secrets/linkwarden.age;
|
||||
owner = config.services.linkwarden.user;
|
||||
};
|
||||
linkwarden-db = {
|
||||
file = ../../../secrets/linkwarden.age;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue