diff options
author | Xavier Vello <xavier.vello@gmail.com> | 2019-07-20 21:26:01 +0200 |
---|---|---|
committer | Xavier Vello <xavier.vello@gmail.com> | 2019-07-20 21:53:46 +0200 |
commit | df748aeefe1e9e83126fac886cf6c59f5a03d06f (patch) | |
tree | 6657f04a2b8027c8ace68112f95f37957e9f2f60 /nixos | |
parent | bacce59bcfb796f3d2466a6e753e7abf74a31f5e (diff) | |
download | nixlib-df748aeefe1e9e83126fac886cf6c59f5a03d06f.tar nixlib-df748aeefe1e9e83126fac886cf6c59f5a03d06f.tar.gz nixlib-df748aeefe1e9e83126fac886cf6c59f5a03d06f.tar.bz2 nixlib-df748aeefe1e9e83126fac886cf6c59f5a03d06f.tar.lz nixlib-df748aeefe1e9e83126fac886cf6c59f5a03d06f.tar.xz nixlib-df748aeefe1e9e83126fac886cf6c59f5a03d06f.tar.zst nixlib-df748aeefe1e9e83126fac886cf6c59f5a03d06f.zip |
nixos/plasma5: allow to configure the default phonon backend
Introduce a new .plasma5.phononBackend option. Default value "gstreamer" installs the same packages as before. "vlc" installs only the vlc phonon backend.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/x11/desktop-managers/plasma5.nix | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/nixos/modules/services/x11/desktop-managers/plasma5.nix b/nixos/modules/services/x11/desktop-managers/plasma5.nix index 14304e00dae4..98c9ae86cee4 100644 --- a/nixos/modules/services/x11/desktop-managers/plasma5.nix +++ b/nixos/modules/services/x11/desktop-managers/plasma5.nix @@ -21,6 +21,13 @@ in description = "Enable the Plasma 5 (KDE 5) desktop environment."; }; + phononBackend = mkOption { + type = types.enum [ "gstreamer" "vlc" ]; + default = "gstreamer"; + example = "vlc"; + description = "Phonon audio backend to install."; + }; + enableQt4Support = mkOption { type = types.bool; default = true; @@ -161,12 +168,14 @@ in qtvirtualkeyboard - libsForQt5.phonon-backend-gstreamer - xdg-user-dirs # Update user dirs as described in https://freedesktop.org/wiki/Software/xdg-user-dirs/ ] - - ++ lib.optionals cfg.enableQt4Support [ pkgs.phonon-backend-gstreamer ] + + # Phonon audio backend + ++ lib.optional (cfg.phononBackend == "gstreamer") libsForQt5.phonon-backend-gstreamer + ++ lib.optional (cfg.phononBackend == "gstreamer" && cfg.enableQt4Support) pkgs.phonon-backend-gstreamer + ++ lib.optional (cfg.phononBackend == "vlc") libsForQt5.phonon-backend-vlc + ++ lib.optional (cfg.phononBackend == "vlc" && cfg.enableQt4Support) pkgs.phonon-backend-vlc # Optional hardware support features ++ lib.optional config.hardware.bluetooth.enable bluedevil |