fmt: tree
This commit is contained in:
parent
b7954dfd8b
commit
eebe33cc73
|
@ -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";};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -99,7 +99,13 @@ 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 {}) // (
|
||||
vpn.cnames =
|
||||
(
|
||||
if state ? cnames
|
||||
then state.cnames
|
||||
else {}
|
||||
)
|
||||
// (
|
||||
builtins.mapAttrs (_name: value: value.host) config.state.services
|
||||
);
|
||||
services =
|
||||
|
|
|
@ -12,4 +12,3 @@ writeShellApplication {
|
|||
nushell
|
||||
];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue