fmt: tree
This commit is contained in:
parent
b7954dfd8b
commit
eebe33cc73
|
@ -49,7 +49,7 @@
|
||||||
name = "libpipewire-module-snapcast-discover";
|
name = "libpipewire-module-snapcast-discover";
|
||||||
args = {
|
args = {
|
||||||
stream.rules = lib.singleton {
|
stream.rules = lib.singleton {
|
||||||
matches = lib.singleton { "snapcast.hostname" = "snapserver"; };
|
matches = lib.singleton {"snapcast.hostname" = "snapserver";};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -15,13 +15,13 @@ in {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
openssh.authorizedKeys.keyFiles = [../secrets/pub/yubikey.pub ../secrets/pub/power-management-key.pub];
|
openssh.authorizedKeys.keyFiles = [../secrets/pub/yubikey.pub ../secrets/pub/power-management-key.pub];
|
||||||
group = "power-target";
|
group = "power-target";
|
||||||
packages = [ pkgs.pmutils ];
|
packages = [pkgs.pmutils];
|
||||||
};
|
};
|
||||||
users.groups.power-target = {};
|
users.groups.power-target = {};
|
||||||
|
|
||||||
security.sudo.extraRules = lib.mkAfter [
|
security.sudo.extraRules = lib.mkAfter [
|
||||||
{
|
{
|
||||||
users = [ config.users.users.power-target.name ];
|
users = [config.users.users.power-target.name];
|
||||||
commands = lib.singleton {
|
commands = lib.singleton {
|
||||||
command = "/etc/profiles/per-user/${config.users.users.power-target.name}/bin/pm-suspend";
|
command = "/etc/profiles/per-user/${config.users.users.power-target.name}/bin/pm-suspend";
|
||||||
options = lib.singleton "NOPASSWD";
|
options = lib.singleton "NOPASSWD";
|
||||||
|
|
|
@ -99,9 +99,15 @@ in {
|
||||||
else builtins.throw "No VPN entry for DNS host"
|
else builtins.throw "No VPN entry for DNS host"
|
||||||
)
|
)
|
||||||
else builtins.throw "No DNS service defined!";
|
else builtins.throw "No DNS service defined!";
|
||||||
vpn.cnames = (if state ? cnames then state.cnames else {}) // (
|
vpn.cnames =
|
||||||
builtins.mapAttrs (_name: value: value.host) config.state.services
|
(
|
||||||
);
|
if state ? cnames
|
||||||
|
then state.cnames
|
||||||
|
else {}
|
||||||
|
)
|
||||||
|
// (
|
||||||
|
builtins.mapAttrs (_name: value: value.host) config.state.services
|
||||||
|
);
|
||||||
services =
|
services =
|
||||||
if state ? services
|
if state ? services
|
||||||
then state.services
|
then state.services
|
||||||
|
|
|
@ -12,4 +12,3 @@ writeShellApplication {
|
||||||
nushell
|
nushell
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue