nixos/portunus: fix dangling service files for dex

Changed files
+8 -6
nixos
modules
services
+8 -6
nixos/modules/services/misc/portunus.nix
···
};
systemd.services = {
-
dex.serviceConfig = mkIf cfg.dex.enable {
-
# `dex.service` is super locked down out of the box, but we need some
-
# place to write the SQLite database. This creates $STATE_DIRECTORY below
-
# /var/lib/private because DynamicUser=true, but it gets symlinked into
-
# /var/lib/dex inside the unit
-
StateDirectory = "dex";
+
dex = mkIf cfg.dex.enable {
+
serviceConfig = {
+
# `dex.service` is super locked down out of the box, but we need some
+
# place to write the SQLite database. This creates $STATE_DIRECTORY below
+
# /var/lib/private because DynamicUser=true, but it gets symlinked into
+
# /var/lib/dex inside the unit
+
StateDirectory = "dex";
+
};
};
portunus = {