feat(browser): use firefox not chromium

This commit is contained in:
buffet 2022-10-22 13:52:08 +00:00
parent 2475d151d6
commit 7bccf9bf8c
8 changed files with 55 additions and 23 deletions

View file

@ -2,6 +2,7 @@
pkgs,
agenix,
home-manager,
nur,
...
}: let
password = "$6$FHwMlUwmRdAsPqS4$4XND0L0EEVf2Mhc/tvo6y3ZLIrMTOlsIZrG3w69EeXvtVZhdeNyoDOkPNIe.GBB8.PrchuUKDacqbvcvyuPkt0";
@ -9,6 +10,7 @@ in {
imports = [
agenix.nixosModule
home-manager.nixosModule
nur.nixosModules.nur
./impermanence.nix
./programs
./system.nix

View file

@ -120,6 +120,21 @@
"type": "github"
}
},
"nur": {
"locked": {
"lastModified": 1666442350,
"narHash": "sha256-fqEXNsVN0PR4Xn9+cqKsv2FtRSXawUnpQg89vukvZjg=",
"owner": "nix-community",
"repo": "NUR",
"rev": "9ac088a698c05304275199db5039a0525764724c",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "NUR",
"type": "github"
}
},
"root": {
"inputs": {
"agenix": "agenix",
@ -128,7 +143,8 @@
"home-manager": "home-manager",
"impermanence": "impermanence",
"lsp-trouble": "lsp-trouble",
"nixpkgs": "nixpkgs"
"nixpkgs": "nixpkgs",
"nur": "nur"
}
}
},

View file

@ -2,6 +2,7 @@
inputs = {
impermanence.url = "github:nix-community/impermanence";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.05";
nur.url = "github:nix-community/NUR";
agenix = {
url = "github:ryantm/agenix";

View file

@ -34,7 +34,6 @@
allowOther = true;
directories = [
"chromium/.config/chromium"
"data/books"
"data/docs"
"data/git"

View file

@ -1,19 +0,0 @@
_: {
home-manager.users.buffet = {
home.sessionVariables = {
BROWSER = "chromium";
NIXOS_OZONE_WL = "1";
};
programs.chromium = {
enable = true;
extensions = [
{id = "nngceckbapebfimnlniiiahkandclblb";} # Bitwarden
{id = "gcbommkclmclpchllfjekcdonpmejbdp";} # HTTPS Everywhere
{id = "fihnjjcciajhdojfnbdddfaoknhalnja";} # I don't care about cookies
{id = "hlepfoohegkhhmjieoechaddaejaokhf";} # Refined GitHub
{id = "cjpalhdlnbpafiamejdnhcphjbkeiagm";} # uBlock Origin
];
};
};
}

View file

@ -4,7 +4,7 @@ _: {
./bash.nix
./borg.nix
./cargo.nix
./chromium.nix
./firefox.nix
./git.nix
./gpg.nix
./mako.nix

33
programs/firefox.nix Normal file
View file

@ -0,0 +1,33 @@
{
config,
pkgs,
...
}: {
home-manager.users.buffet = {
programs.firefox = {
enable = true;
package = pkgs.firefox-wayland;
extensions = with config.nur.repos.rycee.firefox-addons; [
bitwarden
https-everywhere
i-dont-care-about-cookies
refined-github
sidebery
ublock-origin
];
profiles."buffet" = {
settings = {
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
};
userChrome = ''
#TabsToolbar {
visibility: collapse !important;
}
'';
};
};
};
}

View file

@ -12,7 +12,7 @@
xwayland = false;
config = let
browser = "chromium";
browser = "firefox";
mod = "Mod4";
terminal = "alacritty";
theme = import ../theme.nix;