This commit is contained in:
Tove 2026-06-04 22:21:35 +02:00
parent f1f6de9a90
commit 2925b9419e
2 changed files with 29 additions and 0 deletions

View file

@ -155,6 +155,24 @@ in
programs.fish.enable = true;
programs.htop.enable = true;
xdg.mime.enable = true;
xdg.mime.defaultApplications = {
"text/html" = "glinks.desktop";
"x-scheme-handler/http" = "glinks.desktop";
"x-scheme-handler/https" = "glinks.desktop";
"x-scheme-handler/about" = "glinks.desktop";
"x-scheme-handler/unknown" = "glinks.desktop";
};
xdg.desktopEntries.glinks = {
name="gLinks";
comment="Graphical links";
exec="links -g %U";
terminal=false;
type="Application";
categories=[ "Network" "WebBrowser" ];
mimeType = [ "text/html" "text/xml" ];
};
programs.firefox.enable = true;
programs.firefox.nativeMessagingHosts.packages = with pkgs; [
tridactyl-native
@ -195,6 +213,7 @@ in
_JAVA_AWT_WM_NONREPARENTING = 1;
EDITOR = "hx";
ARANET4_ADDRESS = "D6:80:4F:97:08:17";
DEFAULT_BROWSER = "${pkgs.links}/bin/links -g";
};
services.udev.packages = with pkgs; [

10
glinks.desktop Normal file
View file

@ -0,0 +1,10 @@
[Desktop Entry]
Name=gLinks
Comment=Graphical links
Comment[pl]=Graficzny links
Exec=glinks
Terminal=false
Icon=links2
Type=Application
Categories=Network;WebBrowser;
# vi: encoding=utf-8