services/pipewire: switch to system-wide pipewire
This commit is contained in:
parent
5e6a83bb66
commit
a67263f5dd
|
@ -7,9 +7,6 @@
|
||||||
pulse.enable = true;
|
pulse.enable = true;
|
||||||
jack.enable = true;
|
jack.enable = true;
|
||||||
alsa.enable = true;
|
alsa.enable = true;
|
||||||
|
systemWide = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.globalPersistence.user.directories = [
|
|
||||||
".local/state/wireplumber"
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,14 @@
|
||||||
{ config, pkgs, ... }:
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
uid = config.ids.uids.rebmit;
|
uid = config.ids.uids.rebmit;
|
||||||
homeDirectory = "/home/rebmit";
|
homeDirectory = "/home/rebmit";
|
||||||
|
groupNameIfPresent =
|
||||||
|
name: lib.optional (config.users.groups ? ${name}) config.users.groups.${name}.name;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
programs.fish.enable = true;
|
programs.fish.enable = true;
|
||||||
|
@ -12,9 +19,12 @@ in
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
shell = pkgs.fish;
|
shell = pkgs.fish;
|
||||||
home = homeDirectory;
|
home = homeDirectory;
|
||||||
extraGroups = with config.users.groups; [
|
extraGroups =
|
||||||
wheel.name
|
with config.users.groups;
|
||||||
];
|
[
|
||||||
|
wheel.name
|
||||||
|
]
|
||||||
|
++ groupNameIfPresent "pipewire";
|
||||||
openssh.authorizedKeys.keyFiles = config.users.users.root.openssh.authorizedKeys.keyFiles;
|
openssh.authorizedKeys.keyFiles = config.users.users.root.openssh.authorizedKeys.keyFiles;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue