Properly enable pipewire from nixos wiki setup
Disable hardware.audio, enable pipewire addons Move xdg mime definitions from home manager to system level Consolidate xdg portal options in desktop.nix
This commit is contained in:
parent
c3599f0f45
commit
92378190f1
|
@ -107,32 +107,5 @@
|
||||||
'';
|
'';
|
||||||
"swaync/style.css".source = ./swaync/style.css;
|
"swaync/style.css".source = ./swaync/style.css;
|
||||||
};
|
};
|
||||||
mimeApps = rec {
|
|
||||||
enable = true;
|
|
||||||
defaultApplications = {
|
|
||||||
"application/pdf" = [ "emacs.desktop" ];
|
|
||||||
"application/epub+zip" = [ "emacs.desktop" ];
|
|
||||||
"application/oxps" = [ "emacs.desktop" ];
|
|
||||||
"image/jpeg" = [ "swayimg.desktop" ];
|
|
||||||
"image/png" = [ "swayimg.desktop" ];
|
|
||||||
"video/mp4" = [ "mpv.desktop" ];
|
|
||||||
"text/csv" = [ "emacs.desktop" ];
|
|
||||||
"text/html" = [ "firefox.desktop" ];
|
|
||||||
"x-scheme-handler/http" = [ "firefox.desktop" ];
|
|
||||||
"x-scheme-handler/https" = [ "firefox.desktop" ];
|
|
||||||
"x-scheme-handler/about" = [ "firefox.desktop" ];
|
|
||||||
"x-scheme-handler/chrome" = [ "firefox.desktop" ];
|
|
||||||
"application/x-extension-htm" = [ "firefox.desktop" ];
|
|
||||||
"application/x-extension-html" = [ "firefox.desktop" ];
|
|
||||||
"application/x-extension-shtml" = [ "firefox.desktop" ];
|
|
||||||
"application/xhtml+xml" = [ "firefox.desktop" ];
|
|
||||||
"application/x-extension-xhtml" = [ "firefox.desktop" ];
|
|
||||||
"application/x-extension-xht" = [ "firefox.desktop" ];
|
|
||||||
"application/x-mozilla-bookmarks" = [ "firefox.desktop" ];
|
|
||||||
"x-scheme-handler/msteams" = [ "teams-for-linux.desktop" ];
|
|
||||||
"x-scheme-handler/zoomus" = [ ];
|
|
||||||
};
|
|
||||||
associations.added = defaultApplications;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,11 +10,8 @@
|
||||||
polkit.enable = true;
|
polkit.enable = true;
|
||||||
rtkit.enable = true;
|
rtkit.enable = true;
|
||||||
};
|
};
|
||||||
sound.enable = true;
|
sound.enable = false;
|
||||||
hardware = {
|
hardware.bluetooth.enable = true;
|
||||||
pulseaudio.enable = false;
|
|
||||||
bluetooth.enable = true;
|
|
||||||
};
|
|
||||||
services = {
|
services = {
|
||||||
accounts-daemon.enable = true;
|
accounts-daemon.enable = true;
|
||||||
dbus.packages = with pkgs; [ gcr ];
|
dbus.packages = with pkgs; [ gcr ];
|
||||||
|
@ -24,9 +21,14 @@
|
||||||
};
|
};
|
||||||
pipewire = {
|
pipewire = {
|
||||||
enable = true;
|
enable = true;
|
||||||
alsa.enable = true;
|
alsa = {
|
||||||
alsa.support32Bit = true;
|
enable = true;
|
||||||
|
support32Bit = true;
|
||||||
|
};
|
||||||
|
audio.enable = true;
|
||||||
|
jack.enable = true;
|
||||||
pulse.enable = true;
|
pulse.enable = true;
|
||||||
|
wireplumber.enable = true;
|
||||||
};
|
};
|
||||||
xserver = {
|
xserver = {
|
||||||
layout = "gb";
|
layout = "gb";
|
||||||
|
@ -41,4 +43,8 @@
|
||||||
platformTheme = "gnome";
|
platformTheme = "gnome";
|
||||||
style = "adwaita-dark";
|
style = "adwaita-dark";
|
||||||
};
|
};
|
||||||
|
xdg.portal = {
|
||||||
|
enable = true;
|
||||||
|
xdgOpenUsePortal = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,11 +38,6 @@
|
||||||
libreoffice
|
libreoffice
|
||||||
webcord
|
webcord
|
||||||
teams-for-linux
|
teams-for-linux
|
||||||
gst_all_1.gst-libav
|
|
||||||
gst_all_1.gst-plugins-base
|
|
||||||
gst_all_1.gst-plugins-good
|
|
||||||
gst_all_1.gst-plugins-bad
|
|
||||||
gst_all_1.gst-plugins-ugly
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
security.pam.services.swaylock = { };
|
security.pam.services.swaylock = { };
|
||||||
|
@ -58,7 +53,32 @@
|
||||||
initial_session = { inherit command; };
|
initial_session = { inherit command; };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
xdg.portal.enable = true;
|
xdg.mime = rec {
|
||||||
|
enable = true;
|
||||||
|
defaultApplications = {
|
||||||
|
"application/pdf" = [ "emacs.desktop" ];
|
||||||
|
"application/epub+zip" = [ "emacs.desktop" ];
|
||||||
|
"application/oxps" = [ "emacs.desktop" ];
|
||||||
|
"image/jpeg" = [ "swayimg.desktop" ];
|
||||||
|
"image/png" = [ "swayimg.desktop" ];
|
||||||
|
"video/mp4" = [ "mpv.desktop" ];
|
||||||
|
"text/csv" = [ "emacs.desktop" ];
|
||||||
|
"text/html" = [ "firefox.desktop" ];
|
||||||
|
"x-scheme-handler/http" = [ "firefox.desktop" ];
|
||||||
|
"x-scheme-handler/https" = [ "firefox.desktop" ];
|
||||||
|
"x-scheme-handler/about" = [ "firefox.desktop" ];
|
||||||
|
"x-scheme-handler/chrome" = [ "firefox.desktop" ];
|
||||||
|
"application/x-extension-htm" = [ "firefox.desktop" ];
|
||||||
|
"application/x-extension-html" = [ "firefox.desktop" ];
|
||||||
|
"application/x-extension-shtml" = [ "firefox.desktop" ];
|
||||||
|
"application/xhtml+xml" = [ "firefox.desktop" ];
|
||||||
|
"application/x-extension-xhtml" = [ "firefox.desktop" ];
|
||||||
|
"application/x-extension-xht" = [ "firefox.desktop" ];
|
||||||
|
"application/x-mozilla-bookmarks" = [ "firefox.desktop" ];
|
||||||
|
"x-scheme-handler/msteams" = [ "teams-for-linux.desktop" ];
|
||||||
|
};
|
||||||
|
addedAssociations = defaultApplications;
|
||||||
|
};
|
||||||
programs = {
|
programs = {
|
||||||
dconf.enable = true;
|
dconf.enable = true;
|
||||||
light.enable = true;
|
light.enable = true;
|
||||||
|
|
Loading…
Reference in a new issue