mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
fix(nixos): compatibility updates
This commit is contained in:
parent
7e0fca661e
commit
8595762c7b
3 changed files with 9 additions and 3 deletions
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -42,6 +42,7 @@ in {
|
|||
port = 8072;
|
||||
};
|
||||
serial = {
|
||||
adapter = "zstack";
|
||||
port = "/dev/ttyZigbee";
|
||||
};
|
||||
availability = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue