This commit is contained in:
SebastianStork 2025-06-13 16:54:03 +02:00
parent e285ab3183
commit 9fb4a18ee5
11 changed files with 22 additions and 44 deletions

View file

@ -1,8 +1,4 @@
{
config,
lib,
...
}:
{ config, lib, ... }:
let
cfg = config.custom.services.actualbudget;
in
@ -20,10 +16,12 @@ in
};
config = lib.mkIf cfg.enable {
users.groups.actual = { };
users.users.actual = {
isSystemUser = true;
group = "actual";
users = {
groups.actual = { };
users.actual = {
isSystemUser = true;
group = config.users.groups.actual.name;
};
};
services.actual = {

View file

@ -42,8 +42,7 @@ in
# environmentFile = config.sops.templates."hedgedoc/environment".path;
settings = {
domain = cfg.domain;
inherit (cfg) port;
inherit (cfg) domain port;
protocolUseSSL = true;
allowAnonymous = false;
allowEmailRegister = false;

View file

@ -46,7 +46,6 @@ in
log_type = "file";
default_phone_region = "DE";
maintenance_window_start = "2"; # UTC
defaultapp = "side_menu";
};
configureRedis = true;

View file

@ -1,8 +1,4 @@
{
config,
lib,
...
}:
{ config, lib, ... }:
let
cfg = config.custom.services.ntfy;
in

View file

@ -6,7 +6,7 @@
}:
let
cfg = config.custom.services.syncthing;
tsCfg = config.custom.services.tailscale;
tailscaleCfg = config.custom.services.tailscale;
in
{
options.custom.services.syncthing = {
@ -21,7 +21,7 @@ in
config = lib.mkIf cfg.enable {
assertions = [
{
assertion = tsCfg.enable;
assertion = tailscaleCfg.enable;
message = "syncthing requires tailscale";
}
];
@ -44,7 +44,7 @@ in
|> lib.mapAttrs (
name: value: {
id = value.config.custom.services.syncthing.deviceId;
addresses = [ "tcp://${name}.${tsCfg.domain}:22000" ];
addresses = [ "tcp://${name}.${tailscaleCfg.domain}:22000" ];
}
);

View file

@ -1,8 +1,4 @@
{
config,
lib,
...
}:
{ config, lib, ... }:
let
cfg = config.custom.services.uptimeKuma;
in