diff options
Diffstat (limited to 'modules/by-name/so/sound')
| -rw-r--r-- | modules/by-name/so/sound/module.nix | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/modules/by-name/so/sound/module.nix b/modules/by-name/so/sound/module.nix index 8b519f09..06df63e5 100644 --- a/modules/by-name/so/sound/module.nix +++ b/modules/by-name/so/sound/module.nix @@ -1,12 +1,22 @@ +# nixos-config - My current NixOS configuration +# +# Copyright (C) 2025 Benedikt Peetz <benedikt.peetz@b-peetz.de> +# SPDX-License-Identifier: GPL-3.0-or-later +# +# This file is part of my nixos-config. +# +# You should have received a copy of the License along with this program. +# If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. { config, + libraries, lib, ... }: let cfg = config.soispha.sound; in { options.soispha.sound = { - enable = lib.mkEnableOption "sound based on pipewire"; + enable = libraries.base.options.mkEnable "sound based on pipewire"; }; config = lib.mkIf cfg.enable { @@ -21,6 +31,11 @@ in { jack.enable = true; }; + users = { + users.rtkit.uid = config.soispha.constants.ids.uids.rtkit; + groups.rtkit.gid = config.soispha.constants.ids.gids.rtkit; + }; + # TODO: Find a better way to set the default volume <2024-03-10> # # environment.etc.pipewire-pulse-config = { |
