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

View file

@ -120,6 +120,21 @@
"type": "github" "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": { "root": {
"inputs": { "inputs": {
"agenix": "agenix", "agenix": "agenix",
@ -128,7 +143,8 @@
"home-manager": "home-manager", "home-manager": "home-manager",
"impermanence": "impermanence", "impermanence": "impermanence",
"lsp-trouble": "lsp-trouble", "lsp-trouble": "lsp-trouble",
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs",
"nur": "nur"
} }
} }
}, },

View file

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

View file

@ -34,7 +34,6 @@
allowOther = true; allowOther = true;
directories = [ directories = [
"chromium/.config/chromium"
"data/books" "data/books"
"data/docs" "data/docs"
"data/git" "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 ./bash.nix
./borg.nix ./borg.nix
./cargo.nix ./cargo.nix
./chromium.nix ./firefox.nix
./git.nix ./git.nix
./gpg.nix ./gpg.nix
./mako.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; xwayland = false;
config = let config = let
browser = "chromium"; browser = "firefox";
mod = "Mod4"; mod = "Mod4";
terminal = "alacritty"; terminal = "alacritty";
theme = import ../theme.nix; theme = import ../theme.nix;