From 48e0de52b6fc8a985a4a8b0ecb60fe5590dc9f9c Mon Sep 17 00:00:00 2001 From: Thatoo Date: Tue, 2 Apr 2024 13:25:48 +0200 Subject: [PATCH] Make Firefox module ready to work with Gnome extension As a newcomer installing the Gnome ISO, one would expect gnome extension to work right away with the "by default" installed firefox. --- modules/nixos/main.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/modules/nixos/main.py b/modules/nixos/main.py index 9dc3352..ff25f1f 100644 --- a/modules/nixos/main.py +++ b/modules/nixos/main.py @@ -249,6 +249,7 @@ # services.xserver.libinput.enable = true; """ + cfgusers = """ # Define a user account. Don't forget to set a password with ‘passwd’. users.users.@@username@@ = { isNormalUser = true; @@ -260,7 +261,13 @@ """ cfgfirefox = """ # Install firefox. - programs.firefox.enable = true; + programs.firefox = { + enable = true; + package = pkgs.firefox; + nativeMessagingHosts.packages = with pkgs; [ + browserpass + ]; + }; """ @@ -323,6 +330,7 @@ system.stateVersion = "@@nixosversion@@"; # Did you read the comment? } + """