some formatting

This commit is contained in:
Julien Malka 2023-01-19 19:09:05 +01:00
parent fa91fc44e4
commit 632b41077f
Signed by: Luj
GPG key ID: 6FC74C847011FD83

View file

@ -3,7 +3,7 @@ with lib;
let let
cfg = config.luj.navidrome; cfg = config.luj.navidrome;
port = 4533; port = 4533;
settingsFormat = pkgs.formats.json {}; settingsFormat = pkgs.formats.json { };
in in
{ {
@ -33,7 +33,7 @@ in
config = mkIf cfg.enable ( config = mkIf cfg.enable (
mkMerge [{ mkMerge [{
sops.secrets."navidrome.json" = { sops.secrets."navidrome.json" = {
owner = cfg.user; owner = cfg.user;
format = "binary"; format = "binary";
sopsFile = ../../secrets/navidrome-config; sopsFile = ../../secrets/navidrome-config;
@ -42,7 +42,7 @@ in
systemd.services.navidrome = { systemd.services.navidrome = {
description = "Navidrome Media Server"; description = "Navidrome Media Server";
after = [ "network.target" ]; after = [ "network.target" ];
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
@ -62,10 +62,10 @@ in
} }
(mkIf cfg.nginx.enable (mkSubdomain cfg.nginx.subdomain port)) (mkIf cfg.nginx.enable (mkSubdomain cfg.nginx.subdomain port))
(mkIf cfg.nginx.enable (mkVPNSubdomain cfg.nginx.subdomain port))]); (mkIf cfg.nginx.enable (mkVPNSubdomain cfg.nginx.subdomain port))]);
} }