From d19a7e82c0a079c643f12077e97ab5303dbd256c Mon Sep 17 00:00:00 2001 From: EsVagy42 Date: Tue, 4 Nov 2025 22:28:00 +0100 Subject: [PATCH] Brave and Librewolf are now installed by home manager and their native hosts are configured with home manager too --- commit_text | 2 +- configuration.nix | 2 -- home.nix | 29 ++++++++++++++----- .../org.kde.plasma.browser_integration.json | 7 ----- 4 files changed, 23 insertions(+), 17 deletions(-) delete mode 100644 librewolf/native-messaging-hosts/org.kde.plasma.browser_integration.json diff --git a/commit_text b/commit_text index 4bd1861..e1d6381 100644 --- a/commit_text +++ b/commit_text @@ -1 +1 @@ -Added brave +Brave and Librewolf are now installed by home manager and their native hosts are configured with home manager too diff --git a/configuration.nix b/configuration.nix index 9c3c0ea..a69b664 100644 --- a/configuration.nix +++ b/configuration.nix @@ -33,8 +33,6 @@ let maliit-keyboard espeak - librewolf - brave kdePackages.plasma-browser-integration kdePackages.xdg-desktop-portal-kde diff --git a/home.nix b/home.nix index bcbdbe9..537d728 100644 --- a/home.nix +++ b/home.nix @@ -1,4 +1,9 @@ -{ config, pkgs, lib, ... }: +{ + config, + pkgs, + lib, + ... +}: { # Home Manager needs a bit of information about you and the @@ -35,7 +40,9 @@ }; }; - home.file.".config/konsolerc" = { source = ./konsole/konsolerc; }; + home.file.".config/konsolerc" = { + source = ./konsole/konsolerc; + }; home.file.".local/share/konsole/Konsole.profile" = { source = ./konsole/Konsole.profile; @@ -51,15 +58,23 @@ recursive = true; }; - home.file.".config/mimeapps.list" = { source = ./mimeapps/mimeapps.list; }; - - home.file.".librewolf/native-messaging-hosts" = { - source = ./librewolf/native-messaging-hosts; - recursive = true; + home.file.".config/mimeapps.list" = { + source = ./mimeapps/mimeapps.list; }; home.file.".local/share/applications" = { source = ./shortcuts; recursive = true; }; + + programs = { + librewolf = { + enable = true; + nativeMessagingHosts = [ pkgs.kdePackages.plasma-browser-integration ]; + }; + brave = { + enable = true; + nativeMessagingHosts = [ pkgs.kdePackages.plasma-browser-integration ]; + }; + }; } diff --git a/librewolf/native-messaging-hosts/org.kde.plasma.browser_integration.json b/librewolf/native-messaging-hosts/org.kde.plasma.browser_integration.json deleted file mode 100644 index 44680c1..0000000 --- a/librewolf/native-messaging-hosts/org.kde.plasma.browser_integration.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "name": "org.kde.plasma.browser_integration", - "description": "Native connector for KDE Plasma", - "path": "/run/current-system/sw/bin/plasma-browser-integration-host", - "type": "stdio", - "allowed_extensions": ["plasma-browser-integration@kde.org"] -}