fix(nixos): compatibility updates

This commit is contained in:
arcnmx 2025-09-25 15:11:20 -07:00
parent 7e0fca661e
commit 8595762c7b
3 changed files with 9 additions and 3 deletions

View file

@ -1,5 +1,10 @@
{lib, ...}: let {config, lib, gensokyo-zone, ...}: let
inherit (lib.modules) mkDefault; inherit (lib.modules) mkIf mkDefault;
inherit (gensokyo-zone.lib) mkAlmostForce;
in { in {
time.timeZone = mkDefault "America/Vancouver"; time.timeZone = mkDefault "America/Vancouver";
services.ntp = mkIf config.boot.isContainer {
enable = mkAlmostForce false;
};
} }

View file

@ -56,7 +56,7 @@ in {
services.postgresql = mkIf cfg.enable { services.postgresql = mkIf cfg.enable {
gensokyo-zone.sharedMounts."postgresql/${versions.major cfg.package.version}".path = cfg.dataDir; gensokyo-zone.sharedMounts."postgresql/${versions.major cfg.package.version}".path = cfg.dataDir;
postStart = mkAfter '' postStart = mkAfter ''
$PSQL -tAf ${config.sops.secrets.postgresql-init.path} ''${PSQL-psql} -tAf ${config.sops.secrets.postgresql-init.path}
''; '';
}; };
}; };

View file

@ -42,6 +42,7 @@ in {
port = 8072; port = 8072;
}; };
serial = { serial = {
adapter = "zstack";
port = "/dev/ttyZigbee"; port = "/dev/ttyZigbee";
}; };
availability = { availability = {