feat(host/terebralia-sulcata): update user and snapclient service

This commit is contained in:
Malte Tammena 2024-11-01 14:28:53 +01:00
parent b34c22480e
commit 95d422c9b4
2 changed files with 10 additions and 0 deletions

View file

@ -23,6 +23,15 @@
settings.ssh.openOutsideVPN = true;
users.users.snapclient = {
description = "The user for that all system audio (snapclient/pipewire) should run";
isNormalUser = true;
linger = true;
openssh.authorizedKeys.keyFiles = [
../../secrets/pub/yubikey.pub
];
};
services.avahi = {
enable = true;
nssmdns4 = true;

View file

@ -11,6 +11,7 @@ let cfg = config.services.snapclient; in
config.systemd.user.services.snapclient = lib.mkIf cfg.enable {
wantedBy = lib.warnIfNot config.services.pipewire.enable "Pipewire is not running, snapclient won't work" [
"pipewire.service"
"default.target"
];
after = [
"pipewire.service"