mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
chore: clean up after tewi
This commit is contained in:
parent
166b68492b
commit
47d1036c42
4 changed files with 17 additions and 9 deletions
11
modules/nixos/cockroachdb.nix
Normal file
11
modules/nixos/cockroachdb.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.modules) mkDefault;
|
||||
in {
|
||||
config.services.cockroachdb = {
|
||||
locality = mkDefault "provider=local,network=gensokyo,host=${config.networking.hostName}";
|
||||
};
|
||||
}
|
||||
|
|
@ -10,8 +10,9 @@ in {
|
|||
enable = mkDefault true;
|
||||
user = mkDefault "root";
|
||||
mqtt = {
|
||||
url = mkIf config.services.mosquitto.enable (
|
||||
mkDefault "tcp://localhost:1883"
|
||||
url = mkDefault (if config.services.mosquitto.enable
|
||||
then "tcp://localhost:1883"
|
||||
else "tcp://mqtt.local.${config.networking.domain}:1883"
|
||||
);
|
||||
username = mkDefault "systemd";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -11,8 +11,6 @@ in {
|
|||
path = "${cfg.dataDir}/secret.yaml";
|
||||
};
|
||||
|
||||
users.groups.input.members = [ "zigbee2mqtt" ];
|
||||
|
||||
services.zigbee2mqtt = {
|
||||
enable = mkDefault true;
|
||||
domain = mkDefault "z2m.${config.networking.domain}";
|
||||
|
|
@ -24,6 +22,9 @@ in {
|
|||
mqtt = {
|
||||
user = "z2m";
|
||||
password = "!secret z2m_pass";
|
||||
server = mkIf (!config.services.mosquitto.enable) (
|
||||
mkDefault "mqtt://mqtt.local.${config.networking.domain}:1883"
|
||||
);
|
||||
};
|
||||
homeassistant = true;
|
||||
permit_join = false;
|
||||
|
|
|
|||
|
|
@ -13,11 +13,6 @@
|
|||
nixos.tailscale
|
||||
];
|
||||
|
||||
services.udev.extraRules = ''
|
||||
SUBSYSTEM=="tty", GROUP="input", MODE="0660"
|
||||
'';
|
||||
|
||||
services.cockroachdb.locality = "provider=local,network=gensokyo,host=${config.networking.hostName}";
|
||||
services.kanidm.serverSettings.db_fs_type = "zfs";
|
||||
services.tailscale.advertiseExitNode = true;
|
||||
services.postgresql.package = pkgs.postgresql_14;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue