vikunja implementation on b4l

This commit is contained in:
2025-07-24 11:39:06 +07:00
parent 1bfda37cba
commit 4fa7edfa1f
7 changed files with 54 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
{ config, ... }:
{ inputs, config, ... }:
{
imports = [
(inputs.import-tree ./services)
];
nixpkgs.hostPlatform = {
system = "x86_64-linux";

View File

@@ -0,0 +1,26 @@
{ config, ... }:
{
clan.core.vars.generators.vikunja = {
files.subdomain.secret = false;
prompts = {
subdomain = {
persist = true;
type = "line";
description = "Sub-domain for Vikunja todo app. Default:(todo)";
};
};
script = ''cat $prompts/subdomain | echo "todo" > $out/subdomain'';
};
services.vikunja = {
frontendHostname = "${config.clan.core.vars.generators.vikunja.files.subdomain.value}.${config.networking.fqdn}";
};
services.nginx.virtualHosts."${config.services.vikunja.frontendHostname}" = {
useACMEHost = "${config.networking.fqdn}";
forceSSL = true;
locations."/" = {
proxyPass = "${config.services.vikunja.frontendScheme}://${config.services.vikunja.frontendHostname}:${builtins.toString config.services.vikunja.port}";
};
};
}

View File

@@ -6,7 +6,7 @@
clan = {
meta.name = "NewEdgeClan";
machines = { };
specialArgs = { inherit self; };
specialArgs = { inherit inputs self; };
inherit self;
};
}