Compare commits

...

2 commits

Author SHA1 Message Date
be802492e9
fix(nu): manpager formatting issue
Some checks failed
/ check (push) Has been cancelled
2024-09-19 10:18:53 +02:00
4f834dd822
feat: linux default browser chromium -> firefox 2024-09-19 08:36:53 +02:00
2 changed files with 10 additions and 7 deletions

View file

@ -6,6 +6,8 @@
}: }:
let let
inherit (pkgs.stdenv) isLinux; inherit (pkgs.stdenv) isLinux;
defaultBrowser = "firefox.desktop";
in in
{ {
config = lib.mkIf config.isGraphical { config = lib.mkIf config.isGraphical {
@ -156,12 +158,12 @@ in
home.packages = lib.mkIf isLinux [ pkgs.mullvad-browser ]; home.packages = lib.mkIf isLinux [ pkgs.mullvad-browser ];
xdg.mimeApps.defaultApplications = { xdg.mimeApps.defaultApplications = lib.genAttrs [
"text/html" = "chromium.desktop"; "text/html"
"x-scheme-handler/http" = "chromium.desktop"; "x-scheme-handler/http"
"x-scheme-handler/https" = "chromium.desktop"; "x-scheme-handler/https"
"x-scheme-handler/about" = "chromium.desktop"; "x-scheme-handler/about"
"x-scheme-handler/unknown" = "chromium.desktop"; "x-scheme-handler/unknown"
}; ] (_: defaultBrowser);
}; };
} }

View file

@ -90,6 +90,7 @@ in
''; '';
extraEnv = # nu extraEnv = # nu
'' ''
$env.MANPAGER = "bat -l man -p"
$env.ENV_CONVERSIONS = { $env.ENV_CONVERSIONS = {
"PATH": { "PATH": {
from_string: { |s| $s | split row (char esep) | path expand --no-symlink } from_string: { |s| $s | split row (char esep) | path expand --no-symlink }