services/pipewire: switch to system-wide pipewire

This commit is contained in:
Lu Wang 2024-12-02 18:10:17 +08:00
parent 5e6a83bb66
commit a67263f5dd
Signed by: rebmit
SSH key fingerprint: SHA256:3px8QV1zEerIrEWHaqtH5rR9kjetyRST5EipOPrd+bU
2 changed files with 15 additions and 8 deletions

View file

@ -7,9 +7,6 @@
pulse.enable = true;
jack.enable = true;
alsa.enable = true;
systemWide = true;
};
environment.globalPersistence.user.directories = [
".local/state/wireplumber"
];
}

View file

@ -1,7 +1,14 @@
{ config, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
let
uid = config.ids.uids.rebmit;
homeDirectory = "/home/rebmit";
groupNameIfPresent =
name: lib.optional (config.users.groups ? ${name}) config.users.groups.${name}.name;
in
{
programs.fish.enable = true;
@ -12,9 +19,12 @@ in
isNormalUser = true;
shell = pkgs.fish;
home = homeDirectory;
extraGroups = with config.users.groups; [
wheel.name
];
extraGroups =
with config.users.groups;
[
wheel.name
]
++ groupNameIfPresent "pipewire";
openssh.authorizedKeys.keyFiles = config.users.users.root.openssh.authorizedKeys.keyFiles;
};