Use pipewire

Screen sharing doesn't seem to work yet
This commit is contained in:
Charlotte Van Petegem 2021-01-17 16:14:47 +01:00
parent ffb8372119
commit 44686f804f
No known key found for this signature in database
GPG key ID: 019E764B7184435A
2 changed files with 10 additions and 8 deletions

View file

@ -2,14 +2,10 @@
{
sound.enable = true;
hardware.pulseaudio = {
services.pipewire = {
enable = true;
alsa.enable = true;
jack.enable = true;
pulse.enable = true;
};
# PulseAudio doesn't play nice with symlinks
systemd.user.services.pulseaudio.environment = lib.mkIf config.chvp.zfs.enable {
XDG_CONFIG_HOME = "/data/home/charlotte/.config";
};
users.users.charlotte.extraGroups = [ "audio" ];
}

View file

@ -8,6 +8,11 @@ in
{
services.dbus.packages = with pkgs; [ gnome3.dconf ];
security.pam.services.swaylock = { };
xdg.portal = {
enable = true;
gtkUsePortal = true;
extraPortals = [ pkgs.xdg-desktop-portal-wlr ];
};
home-manager.users.charlotte = { pkgs, lib, ... }: {
home.packages = [ color-picker screenshot ];
programs.mako = {
@ -139,6 +144,7 @@ in
'';
extraSessionCommands = ''
export XDG_SESSION_TYPE=wayland
export XDG_CURRENT_DESKTOP=sway
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
export QT_AUTO_SCREEN_SCALE_FACTOR=0
export QT_SCALE_FACTOR=1