1

Reformat using alejandra

This commit is contained in:
2023-05-24 14:55:07 +02:00
parent c46b68b7dc
commit 76d13c61ba
7 changed files with 64 additions and 59 deletions

View File

@ -135,7 +135,7 @@
hydra = {
image = "linuxserver/nzbhydra2:5.1.8";
autoStart = false;
extraOptions = [
"--network=ns:/var/run/netns/vpn"
"--dns=10.2.0.1"
@ -238,17 +238,21 @@
# Make the system services available to the user
# NOTE: This doesn't work, since the cidfile is located in /run, which is not writable for regular users...
systemd.user.services = let
systemd.user.services = let
# Filter all system service attributes that the user units don't have and add some required attributes
system2user = attrs: lib.mergeAttrs (lib.attrsets.filterAttrs (n: v: !(
n == "confinement" ||
n == "runner" ||
n == "environment"
)) attrs) {
startLimitIntervalSec = 1;
startLimitBurst = 5;
};
system2user = attrs:
lib.mergeAttrs (lib.attrsets.filterAttrs (n: v:
!(
n
== "confinement"
|| n == "runner"
|| n == "environment"
))
attrs) {
startLimitIntervalSec = 1;
startLimitBurst = 5;
};
in {
# podman-stablediffusion = system2user config.systemd.services.podman-stablediffusion;
# podman-stablediffusion = system2user config.systemd.services.podman-stablediffusion;
};
}