Firefox is now working. On to the next thing

This commit is contained in:
James Patrick 2021-11-28 22:06:47 -05:00
parent 2e19952358
commit df82e166a0
6 changed files with 71 additions and 3 deletions

View File

@ -43,6 +43,7 @@
home-manager.useUserPackages = true; home-manager.useUserPackages = true;
home-manager.users.james = import ./home.nix; home-manager.users.james = import ./home.nix;
} }
{ nixpkgs.overlays = [ nur.overlay ]; }
]; ];
}; };

10
home/firefox.nix Normal file
View File

@ -0,0 +1,10 @@
# Home Manager programs.firefox style
programs.firefox = {
enable = true;
package = pkgs.wrapFirefox pkgs.firefox-unwrapped {
forceWayland = true;
extraPolicies = {
ExtensionSettings = {};
};
};
};

View File

@ -10,8 +10,7 @@
(modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/installer/scan/not-detected.nix")
]; ];
# This is required for the zfs module as well. Must be unique. Run the following # This is required for the zfs module as well. Must be unique. Run the following head -c4 /dev/urandom | od -A none -t x4
# head -c4 /dev/urandom | od -A none -t x4
networking.hostId = "a7a1c3f5"; networking.hostId = "a7a1c3f5";
networking.hostName = "nil"; # Define your hostname. networking.hostName = "nil"; # Define your hostname.

View File

@ -0,0 +1,49 @@
{ config, pkgs, ... }: {
home-manager.users.james = {
programs.firefox = {
enable = true;
package = pkgs.firefox.override {
cfg = {
enableTridactylNative = true;
forceWayland = true;
};
};
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
onepassword-password-manager
https-everywhere
ublock-origin
tridactyl
];
profiles = {
default = {
name = "primary";
id = 0;
settings = {
"browser.download.useDownloadDir" =
false; # Ask for download location
"browser.in-content.dark-mode" = true; # Dark mode
"browser.newtabpage.activity-stream.feeds.section.topstories" =
false; # Disable top stories
"browser.newtabpage.activity-stream.feeds.sections" = false;
"browser.newtabpage.activity-stream.feeds.system.topstories" =
false; # Disable top stories
"browser.newtabpage.activity-stream.section.highlights.includePocket" =
false; # Disable pocket
"media.eme.enabled" = true; # Enable DRM
"media.gmp-widevinecdm.visible" = true; # Enable DRM
"media.gmp-widevinecdm.enabled" = true; # Enable DRM
"signon.autofillForms" = false; # Disable built-in form-filling
"signon.rememberSignons" =
false; # Disable built-in password manager
"ui.systemUsesDarkTheme" = true; # Dark mode
};
};
};
};
};
}

View File

@ -1,5 +1,12 @@
{ config, lib, pkgs, ... }: { { config, lib, pkgs, ... }: {
imports = [ ../boot.nix ../cli.nix ../fonts.nix ../sway.nix ./minimal.nix ]; imports = [
../applications/firefox.nix
../boot.nix
../cli.nix
../fonts.nix
../sway.nix
./minimal.nix
];
# Enable sound. # Enable sound.
sound.enable = true; sound.enable = true;

View File

@ -20,6 +20,8 @@ in {
''; '';
}; };
nixpkgs.config.allowUnfree = true;
# Locale # Locale
time.timeZone = "America/New_York"; time.timeZone = "America/New_York";
i18n.defaultLocale = "en_US.UTF-8"; i18n.defaultLocale = "en_US.UTF-8";