mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
chore: nf-fmt-nix
This commit is contained in:
parent
7486517713
commit
9903866044
160 changed files with 4570 additions and 3019 deletions
|
|
@ -8,7 +8,7 @@
|
|||
inherit (lib.modules) mkIf mkDefault;
|
||||
cfg = config.services.systemd2mqtt;
|
||||
in {
|
||||
imports = [ inputs.systemd2mqtt.nixosModules.default ];
|
||||
imports = [inputs.systemd2mqtt.nixosModules.default];
|
||||
|
||||
services.systemd2mqtt = {
|
||||
enable = mkDefault true;
|
||||
|
|
@ -17,7 +17,11 @@ in {
|
|||
url = mkDefault (
|
||||
if config.services.mosquitto.enable
|
||||
then "tcp://localhost:1883"
|
||||
else access.proxyUrlFor { serviceName = "mosquitto"; scheme = "tcp"; }
|
||||
else
|
||||
access.proxyUrlFor {
|
||||
serviceName = "mosquitto";
|
||||
scheme = "tcp";
|
||||
}
|
||||
);
|
||||
username = mkDefault "systemd";
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue