nixos: add firefox portals

This commit is contained in:
Maciej Jur 2024-06-12 00:42:05 +02:00
parent 0f88d612e3
commit 836cd21dbb
Signed by: kamov
GPG key ID: 191CBFF5F72ECAFD
2 changed files with 16 additions and 7 deletions

View file

@ -106,11 +106,12 @@ in
services.pipewire = {
enable = true;
audio.enable = true;
pulse.enable = true;
alsa.enable = true;
alsa.support32Bit = true;
jack.enable = true;
wireplumber.enable = true;
pulse.enable = true;
alsa = {
enable = true;
support32Bit = true;
};
};
# Enable touchpad support (enabled default in most desktopManager).

View file

@ -4,8 +4,8 @@ let
packages = (with pkgs; [
anki
discord
firefox-devedition
krita
prismlauncher
qbittorrent
spotify
vlc
@ -14,10 +14,18 @@ let
]);
in
{
# Define a user account. Don't forget to set a password with passwd.
programs.firefox = {
enable = true;
package = pkgs.firefox-devedition;
preferences = {
"widget.use-xdg-desktop-portal.file-picker" = 1;
"widget.use-xdg-desktop-portal.mime-handler" = 1;
};
};
users.users.kamov = {
isNormalUser = true;
extraGroups = [ "wheel" ]; # Enable sudo for the user.
extraGroups = [ "wheel" ]; # Enable sudo
packages = packages;
shell = pkgs.fish;
};