Firefox is now working. On to the next thing
This commit is contained in:
parent
2e19952358
commit
df82e166a0
|
@ -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
10
home/firefox.nix
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
# Home Manager programs.firefox style
|
||||||
|
programs.firefox = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.wrapFirefox pkgs.firefox-unwrapped {
|
||||||
|
forceWayland = true;
|
||||||
|
extraPolicies = {
|
||||||
|
ExtensionSettings = {};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
|
@ -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.
|
||||||
|
|
||||||
|
|
49
modules/applications/firefox.nix
Normal file
49
modules/applications/firefox.nix
Normal 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
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -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;
|
||||||
|
|
|
@ -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";
|
||||||
|
|
Reference in New Issue
Block a user