fmt: tree

This commit is contained in:
Malte Tammena 2024-11-17 18:09:11 +01:00
parent b7954dfd8b
commit eebe33cc73
4 changed files with 12 additions and 7 deletions

View file

@ -49,7 +49,7 @@
name = "libpipewire-module-snapcast-discover";
args = {
stream.rules = lib.singleton {
matches = lib.singleton { "snapcast.hostname" = "snapserver"; };
matches = lib.singleton {"snapcast.hostname" = "snapserver";};
};
};
};

View file

@ -15,13 +15,13 @@ in {
isNormalUser = true;
openssh.authorizedKeys.keyFiles = [../secrets/pub/yubikey.pub ../secrets/pub/power-management-key.pub];
group = "power-target";
packages = [ pkgs.pmutils ];
packages = [pkgs.pmutils];
};
users.groups.power-target = {};
security.sudo.extraRules = lib.mkAfter [
{
users = [ config.users.users.power-target.name ];
users = [config.users.users.power-target.name];
commands = lib.singleton {
command = "/etc/profiles/per-user/${config.users.users.power-target.name}/bin/pm-suspend";
options = lib.singleton "NOPASSWD";

View file

@ -99,9 +99,15 @@ in {
else builtins.throw "No VPN entry for DNS host"
)
else builtins.throw "No DNS service defined!";
vpn.cnames = (if state ? cnames then state.cnames else {}) // (
builtins.mapAttrs (_name: value: value.host) config.state.services
);
vpn.cnames =
(
if state ? cnames
then state.cnames
else {}
)
// (
builtins.mapAttrs (_name: value: value.host) config.state.services
);
services =
if state ? services
then state.services

View file

@ -12,4 +12,3 @@ writeShellApplication {
nushell
];
}