fixed chrome and added floorp 2

This commit is contained in:
cnst
2024-07-14 08:20:41 +02:00
parent fbd9f22966
commit bd04200da9
5 changed files with 33 additions and 25 deletions

18
flake.lock generated
View File

@@ -48,11 +48,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1720873541, "lastModified": 1720919273,
"narHash": "sha256-YjI3zVNBu93L6t/4oZid+S4a0QEeHk2IpVLgurSqDL8=", "narHash": "sha256-UC9QO6jgHehdPGAu9xx+WRT0p8xCYA26jl1On7E1W88=",
"owner": "nix-community", "owner": "nix-community",
"repo": "flake-firefox-nightly", "repo": "flake-firefox-nightly",
"rev": "e6b42ca70986702592fb9f6d23fe4472b52eb51c", "rev": "176e47a066f8f0c502d25872f81e16ff49dcfd31",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -335,11 +335,11 @@
}, },
"nixpkgs-stable_2": { "nixpkgs-stable_2": {
"locked": { "locked": {
"lastModified": 1720691131, "lastModified": 1720823163,
"narHash": "sha256-CWT+KN8aTPyMIx8P303gsVxUnkinIz0a/Cmasz1jyIM=", "narHash": "sha256-FZ5dnrvKkln9ESdoTR8R7GKW9rNpXNZrxGsOXsbsTpE=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "a046c1202e11b62cbede5385ba64908feb7bfac4", "rev": "f12ee5f64c6a09995e71c9626d88c4efa983b488",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -351,11 +351,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1720542800, "lastModified": 1720768451,
"narHash": "sha256-ZgnNHuKV6h2+fQ5LuqnUaqZey1Lqqt5dTUAiAnqH0QQ=", "narHash": "sha256-EYekUHJE2gxeo2pM/zM9Wlqw1Uw2XTJXOSAO79ksc4Y=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "feb2849fdeb70028c70d73b848214b00d324a497", "rev": "7e7c39ea35c5cdd002cd4588b03a3fb9ece6fad9",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -0,0 +1,22 @@
{
programs.chromium = {
enable = true;
extraOpts = {
"SyncDisabled" = true;
"PasswordManagerEnabled" = false;
"SpellcheckEnabled" = true;
"SpellcheckLanguage" = [
"se"
"en-US"
];
};
extensions = ''
[
"cjpalhdlnbpafiamejdnhcphjbkeiagm" # ublock origin
"mnjggcdmjocbbbhaepdhchncahnbgone" # sponsorblock
"gebbhagfogifgggkldgodflihgfeippi" # return dislike
"ponfpcnoihfmfllpaingbgckeeldkhle" # enhancer for youtube
]
'';
};
}

View File

@@ -1,12 +0,0 @@
{
programs.firefox = {
enable = true;
};
xdg.mimeApps.defaultApplications = {
"text/html" = [ "firefox.desktop" ];
"text/xml" = [ "firefox.desktop" ];
"x-scheme-handler/http" = [ "firefox.desktop" ];
"x-scheme-handler/https" = [ "firefox.desktop" ];
};
}

View File

@@ -7,8 +7,6 @@
}: let }: let
firefoxFlake = inputs.firefox-nightly.packages.${pkgs.stdenv.hostPlatform.system}; firefoxFlake = inputs.firefox-nightly.packages.${pkgs.stdenv.hostPlatform.system};
_firefoxNightly = firefoxFlake.firefox-nightly-bin; _firefoxNightly = firefoxFlake.firefox-nightly-bin;
_chrome = pkgs.ungoogled-chromium {commandLineArgs = ["--force-dark-mode"];};
in { in {
home.packages = lib.mkMerge [ home.packages = lib.mkMerge [
(lib.mkIf (pkgs.hostPlatform.system == "x86_64-linux") ( (lib.mkIf (pkgs.hostPlatform.system == "x86_64-linux") (
@@ -16,7 +14,6 @@ in {
# browsers # browsers
_firefoxNightly _firefoxNightly
pkgs.firefox-bin pkgs.firefox-bin
_chrome
floorp floorp
] ]
)) ))

View File

@@ -13,7 +13,8 @@
# extra # extra
../../extra/foot ../../extra/foot
../../extra/browsers ../../extra/browsers/firefox.nix
../../extra/browsers/chromium.nix
../../extra/neovim ../../extra/neovim
]; ];
home = { home = {