defaultApps: fuse finalpackage from firefox as default
Some checks are pending
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-build / slateport-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run

This commit is contained in:
Aly Raffauf 2024-10-05 15:38:05 -04:00
parent 42d42b10e3
commit 580bb60f8c
3 changed files with 8 additions and 2 deletions

View file

@ -7,6 +7,7 @@
config = lib.mkIf config.ar.home.apps.firefox.enable { config = lib.mkIf config.ar.home.apps.firefox.enable {
programs.firefox = { programs.firefox = {
enable = true; enable = true;
nativeMessagingHosts = nativeMessagingHosts =
lib.optionals (config.ar.home.desktop.gnome.enable) [pkgs.gnome-browser-connector] lib.optionals (config.ar.home.desktop.gnome.enable) [pkgs.gnome-browser-connector]
++ lib.optional (config.ar.home.apps.keepassxc.enable) pkgs.keepassxc; ++ lib.optional (config.ar.home.apps.keepassxc.enable) pkgs.keepassxc;

View file

@ -25,7 +25,7 @@ in {
terminal terminal
terminalEditor terminalEditor
videoPlayer videoPlayer
# webBrowser webBrowser
]; ];
sessionVariables = { sessionVariables = {

View file

@ -85,7 +85,12 @@ in {
terminal = lib.mkPackageOption pkgs "terminal emulator" {default = ["kitty"];}; terminal = lib.mkPackageOption pkgs "terminal emulator" {default = ["kitty"];};
terminalEditor = lib.mkPackageOption pkgs "terminal text editor" {default = ["vim"];}; terminalEditor = lib.mkPackageOption pkgs "terminal text editor" {default = ["vim"];};
videoPlayer = lib.mkPackageOption pkgs "video player" {default = ["celluloid"];}; videoPlayer = lib.mkPackageOption pkgs "video player" {default = ["celluloid"];};
webBrowser = lib.mkPackageOption pkgs "web browser" {default = ["firefox"];};
webBrowser = lib.mkOption {
description = "web browser";
default = config.programs.firefox.finalPackage;
type = lib.types.package;
};
}; };
desktop = { desktop = {