ctucx.git: nixfiles

ctucx' nixfiles

1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
21 
22 
23 
24 
25 
26 
27 
28 
29 
30 
31 
32 
33 
{ config, lib, pkgs, ... }:

let
  cfg = config.ctucxConfig.services.pipewire;

in {

  options = {
    ctucxConfig.services.pipewire = {
      enable = lib.mkEnableOption "pipewire sound server";
    };
  };

  config = lib.mkIf cfg.enable {

    security.rtkit.enable  = true;

    services = {
      pipewire = {
        enable = true;
        socketActivation = true;

        alsa.enable           = true;
        pulse.enable          = true;
      };
    };

    home-manager.users.katja.home.packages = lib.mkIf config.ctucxConfig.wm.sway.enable [
      pkgs.pavucontrol
    ];
  };

}