mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 19:51:34 +01:00
Cleanup
This commit is contained in:
parent
e285ab3183
commit
9fb4a18ee5
11 changed files with 22 additions and 44 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -46,7 +46,6 @@ in
|
|||
log_type = "file";
|
||||
default_phone_region = "DE";
|
||||
maintenance_window_start = "2"; # UTC
|
||||
defaultapp = "side_menu";
|
||||
};
|
||||
|
||||
configureRedis = true;
|
||||
|
|
|
|||
|
|
@ -1,8 +1,4 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.custom.services.ntfy;
|
||||
in
|
||||
|
|
|
|||
|
|
@ -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" ];
|
||||
}
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,4 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.custom.services.uptimeKuma;
|
||||
in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue