diff options
Diffstat (limited to 'makefu/2configs/gui')
-rw-r--r-- | makefu/2configs/gui/base.nix | 9 | ||||
-rw-r--r-- | makefu/2configs/gui/pipewire.nix | 21 |
2 files changed, 25 insertions, 5 deletions
diff --git a/makefu/2configs/gui/base.nix b/makefu/2configs/gui/base.nix index 4ae816d5f..b2192c7f9 100644 --- a/makefu/2configs/gui/base.nix +++ b/makefu/2configs/gui/base.nix @@ -17,8 +17,10 @@ in { imports = [ ./urxvtd.nix + ./pipewire.nix ]; + services.xserver = { enable = true; layout = "us"; @@ -49,7 +51,7 @@ in }; users.users.${mainUser} = { - extraGroups = [ "audio" ]; + extraGroups = [ "pipewire" "audio" ]; packages = with pkgs;[ pavucontrol xlockmore @@ -57,10 +59,6 @@ in ]; }; - hardware.pulseaudio = { - enable = true; - # systemWide = true; - }; services.xserver.displayManager.sessionCommands = let xdefaultsfile = pkgs.writeText "Xdefaults" '' cat |derp <<EOF @@ -79,6 +77,7 @@ in URxvt.urgentOnBell: true URxvt.visualBell: false URxvt.font : xft:Terminus:size=12 + URxvt.perl-ext-common: default,-confirm-paste ! blue diff --git a/makefu/2configs/gui/pipewire.nix b/makefu/2configs/gui/pipewire.nix new file mode 100644 index 000000000..eb94f75b7 --- /dev/null +++ b/makefu/2configs/gui/pipewire.nix @@ -0,0 +1,21 @@ +{ config, lib, pkgs, ... }: +# TODO test `alsactl init` after suspend to reinit mic +{ + security.rtkit.enable = true; + hardware.pulseaudio.enable = lib.mkForce false; + + environment.systemPackages = with pkgs; [ + alsaUtils + pulseaudio + ponymix + ]; + + services.pipewire = { + enable = true; + systemWide = true; + alsa.enable = true; + alsa.support32Bit = true; + pulse.enable = true; + jack.enable = true; + }; +} |