mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
feat: own file for server pipewire config
This commit is contained in:
parent
446af8af15
commit
a6b8ecde4a
3 changed files with 47 additions and 2 deletions
|
|
@ -4621,7 +4621,6 @@ Also, the system state version is set here. No need to touch it.
|
||||||
"${profilesPath}/common/nixos/gc.nix"
|
"${profilesPath}/common/nixos/gc.nix"
|
||||||
"${profilesPath}/common/nixos/store.nix"
|
"${profilesPath}/common/nixos/store.nix"
|
||||||
"${profilesPath}/common/nixos/time.nix"
|
"${profilesPath}/common/nixos/time.nix"
|
||||||
"${profilesPath}/common/nixos/pipewire.nix"
|
|
||||||
"${profilesPath}/common/nixos/users.nix"
|
"${profilesPath}/common/nixos/users.nix"
|
||||||
"${profilesPath}/common/nixos/nix-ld.nix"
|
"${profilesPath}/common/nixos/nix-ld.nix"
|
||||||
./settings.nix
|
./settings.nix
|
||||||
|
|
@ -4636,6 +4635,7 @@ Also, the system state version is set here. No need to touch it.
|
||||||
./spotifyd.nix
|
./spotifyd.nix
|
||||||
./mpd.nix
|
./mpd.nix
|
||||||
./matrix.nix
|
./matrix.nix
|
||||||
|
./pipewire.nix
|
||||||
./nextcloud.nix
|
./nextcloud.nix
|
||||||
./immich.nix
|
./immich.nix
|
||||||
./paperless.nix
|
./paperless.nix
|
||||||
|
|
@ -5144,6 +5144,31 @@ Also, the system state version is set here. No need to touch it.
|
||||||
}
|
}
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
**** pipewire
|
||||||
|
|
||||||
|
#+begin_src nix :tangle profiles/server/nixos/pipewire.nix
|
||||||
|
{ lib, config, ... }:
|
||||||
|
{
|
||||||
|
config = lib.mkIf (config.swarselsystems.server.mpd || config.swarselsystems.server.navidrome) {
|
||||||
|
|
||||||
|
security.rtkit.enable = true; # this is required for pipewire real-time access
|
||||||
|
|
||||||
|
services.pipewire = {
|
||||||
|
enable = true;
|
||||||
|
pulse.enable = true;
|
||||||
|
jack.enable = true;
|
||||||
|
audio.enable = true;
|
||||||
|
wireplumber.enable = true;
|
||||||
|
alsa = {
|
||||||
|
enable = true;
|
||||||
|
support32Bit = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
#+end_src
|
||||||
|
|
||||||
**** matrix
|
**** matrix
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:CUSTOM_ID: h:1e68d84a-8f99-422f-89ac-78f664ac0013
|
:CUSTOM_ID: h:1e68d84a-8f99-422f-89ac-78f664ac0013
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,6 @@ in
|
||||||
"${profilesPath}/common/nixos/gc.nix"
|
"${profilesPath}/common/nixos/gc.nix"
|
||||||
"${profilesPath}/common/nixos/store.nix"
|
"${profilesPath}/common/nixos/store.nix"
|
||||||
"${profilesPath}/common/nixos/time.nix"
|
"${profilesPath}/common/nixos/time.nix"
|
||||||
"${profilesPath}/common/nixos/pipewire.nix"
|
|
||||||
"${profilesPath}/common/nixos/users.nix"
|
"${profilesPath}/common/nixos/users.nix"
|
||||||
"${profilesPath}/common/nixos/nix-ld.nix"
|
"${profilesPath}/common/nixos/nix-ld.nix"
|
||||||
./settings.nix
|
./settings.nix
|
||||||
|
|
@ -25,6 +24,7 @@ in
|
||||||
./spotifyd.nix
|
./spotifyd.nix
|
||||||
./mpd.nix
|
./mpd.nix
|
||||||
./matrix.nix
|
./matrix.nix
|
||||||
|
./pipewire.nix
|
||||||
./nextcloud.nix
|
./nextcloud.nix
|
||||||
./immich.nix
|
./immich.nix
|
||||||
./paperless.nix
|
./paperless.nix
|
||||||
|
|
|
||||||
20
profiles/server/nixos/pipewire.nix
Normal file
20
profiles/server/nixos/pipewire.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
{ lib, config, ... }:
|
||||||
|
{
|
||||||
|
config = lib.mkIf (config.swarselsystems.server.mpd || config.swarselsystems.server.navidrome) {
|
||||||
|
|
||||||
|
security.rtkit.enable = true; # this is required for pipewire real-time access
|
||||||
|
|
||||||
|
services.pipewire = {
|
||||||
|
enable = true;
|
||||||
|
pulse.enable = true;
|
||||||
|
jack.enable = true;
|
||||||
|
audio.enable = true;
|
||||||
|
wireplumber.enable = true;
|
||||||
|
alsa = {
|
||||||
|
enable = true;
|
||||||
|
support32Bit = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue