nix fmt
This commit is contained in:
@@ -424,8 +424,7 @@ in
|
||||
evaluation_interval = "1m";
|
||||
};
|
||||
|
||||
scrapeConfigs =
|
||||
[
|
||||
scrapeConfigs = [
|
||||
(
|
||||
let
|
||||
port = toString config.services.prometheus.exporters.ping.port;
|
||||
@@ -466,7 +465,8 @@ in
|
||||
static_configs = [ { targets = [ "vno1-vinc.jakst.vpn:9100" ]; } ];
|
||||
}
|
||||
]
|
||||
++ map
|
||||
++
|
||||
map
|
||||
(
|
||||
let
|
||||
port = builtins.toString myData.ports.exporters.node;
|
||||
@@ -601,8 +601,7 @@ in
|
||||
enable = true;
|
||||
passwordPath = config.age.secrets.borgbackup-password.path;
|
||||
sshKeyPath = "/etc/ssh/ssh_host_ed25519_key";
|
||||
dirs =
|
||||
[
|
||||
dirs = [
|
||||
{
|
||||
subvolume = "/var/lib";
|
||||
repo = "${vno3-nk}:${this}-var_lib_lesser";
|
||||
|
||||
@@ -17,8 +17,7 @@
|
||||
};
|
||||
|
||||
config = lib.mkIf config.mj.base.unitstatus.enable {
|
||||
systemd.services =
|
||||
{
|
||||
systemd.services = {
|
||||
"unit-status-mail@" =
|
||||
let
|
||||
# https://northernlightlabs.se/2014-07-05/systemd-status-mail-on-unit-failure.html
|
||||
|
||||
@@ -53,7 +53,8 @@ in
|
||||
"dialout"
|
||||
"video"
|
||||
"audio"
|
||||
] ++ cfg.user.extraGroups;
|
||||
]
|
||||
++ cfg.user.extraGroups;
|
||||
uid = myData.uidgid.motiejus;
|
||||
openssh.authorizedKeys.keys =
|
||||
let
|
||||
@@ -69,7 +70,8 @@ in
|
||||
(''from="127.0.0.1,::1" '' + myData.hosts.${fqdn}.publicKey)
|
||||
])
|
||||
];
|
||||
} // lib.filterAttrs (n: v: n != "extraGroups" && v != null) cfg.user or { };
|
||||
}
|
||||
// lib.filterAttrs (n: v: n != "extraGroups" && v != null) cfg.user or { };
|
||||
|
||||
root = lib.filterAttrs (_: v: v != null) cfg.root;
|
||||
};
|
||||
|
||||
@@ -92,7 +92,8 @@ in
|
||||
h = config.networking;
|
||||
in
|
||||
"${h.hostName}.${h.domain}@${h.hostId}";
|
||||
} // lib.optionalAttrs (cfg.sshKeyPath != null) { BORG_RSH = ''ssh -i "${cfg.sshKeyPath}"''; };
|
||||
}
|
||||
// lib.optionalAttrs (cfg.sshKeyPath != null) { BORG_RSH = ''ssh -i "${cfg.sshKeyPath}"''; };
|
||||
}
|
||||
// lib.optionalAttrs (attrs ? patterns) { inherit (attrs) patterns; }
|
||||
// lib.optionalAttrs (attrs ? prune) { inherit (attrs) prune; }
|
||||
|
||||
@@ -102,8 +102,7 @@ in
|
||||
systemd = {
|
||||
tmpfiles.rules = [ "d /var/lib/nsd/acmezones 0755 nsd nsd -" ];
|
||||
|
||||
services =
|
||||
{
|
||||
services = {
|
||||
nsd-control-setup = {
|
||||
requiredBy = [ "nsd.service" ];
|
||||
before = [ "nsd.service" ];
|
||||
|
||||
Reference in New Issue
Block a user