vikunja implementation on b4l
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{ config, ... }:
|
||||
{ inputs, config, ... }:
|
||||
{
|
||||
imports = [
|
||||
|
||||
(inputs.import-tree ./services)
|
||||
];
|
||||
nixpkgs.hostPlatform = {
|
||||
system = "x86_64-linux";
|
||||
|
26
machines/b4l/services/vikunja.nix
Normal file
26
machines/b4l/services/vikunja.nix
Normal 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}";
|
||||
};
|
||||
};
|
||||
}
|
@@ -6,7 +6,7 @@
|
||||
clan = {
|
||||
meta.name = "NewEdgeClan";
|
||||
machines = { };
|
||||
specialArgs = { inherit self; };
|
||||
specialArgs = { inherit inputs self; };
|
||||
inherit self;
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user