From 836cd21dbbb03ca85d860367df0baa55a207ecbe Mon Sep 17 00:00:00 2001 From: Maciej Jur Date: Wed, 12 Jun 2024 00:42:05 +0200 Subject: [PATCH] nixos: add firefox portals --- nixos/msi/configuration.nix | 9 +++++---- nixos/msi/home.nix | 14 +++++++++++--- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/nixos/msi/configuration.nix b/nixos/msi/configuration.nix index 8a24a31..7bbd294 100644 --- a/nixos/msi/configuration.nix +++ b/nixos/msi/configuration.nix @@ -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). diff --git a/nixos/msi/home.nix b/nixos/msi/home.nix index 6c52caf..90e616b 100644 --- a/nixos/msi/home.nix +++ b/nixos/msi/home.nix @@ -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; };