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
inherit (lib.modules) mkDefault;
{config, lib, gensokyo-zone, ...}: let
inherit (lib.modules) mkIf mkDefault;
inherit (gensokyo-zone.lib) mkAlmostForce;
in {
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 {
gensokyo-zone.sharedMounts."postgresql/${versions.major cfg.package.version}".path = cfg.dataDir;
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;
};
serial = {
adapter = "zstack";
port = "/dev/ttyZigbee";
};
availability = {