mirror test

This commit is contained in:
cnst
2024-06-26 19:25:27 +02:00
parent 53a862291c
commit 4cee5b33c5
11 changed files with 171 additions and 50 deletions

View File

@@ -1,12 +1,27 @@
{
programs.firefox = {
enable = true;
};
pkgs,
lib,
config,
inputs,
...
}:
xdg.mimeApps.defaultApplications = {
"text/html" = [ "firefox.desktop" ];
"text/xml" = [ "firefox.desktop" ];
"x-scheme-handler/http" = [ "firefox.desktop" ];
"x-scheme-handler/https" = [ "firefox.desktop" ];
};
let
firefoxFlake = inputs.firefox-nightly.packages.${pkgs.stdenv.hostPlatform.system};
_firefoxNightly = firefoxFlake.firefox-nightly-bin;
_chrome = pkgs.google-chrome.override { commandLineArgs = [ "--force-dark-mode" ]; };
in
{
home.packages = lib.mkMerge [
(lib.mkIf (pkgs.hostPlatform.system == "x86_64-linux") (
with pkgs;
[
# browsers
_firefoxNightly
pkgs.firefox-bin
_chrome
]
))
];
}