[firefox] Move into user config
This commit is contained in:
parent
745074da50
commit
10ad4de0c5
6 changed files with 69 additions and 75 deletions
|
@ -46,6 +46,7 @@
|
|||
environment.systemPackages = with pkgs; [
|
||||
git
|
||||
vim
|
||||
w3m
|
||||
wget
|
||||
zenith-nvidia
|
||||
];
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
imports = [
|
||||
./firefox
|
||||
];
|
||||
}
|
|
@ -1,56 +0,0 @@
|
|||
{ inputs, lib, config, pkgs, ... }:
|
||||
|
||||
{
|
||||
home-manager.users.tdpeuter.programs.firefox = {
|
||||
enable = true;
|
||||
package = pkgs.firefox.override {
|
||||
cfg = {
|
||||
enableTridactylNative = true;
|
||||
speechSynthesisSupport = true; # Allow Text-to-speech in e.g. Discord
|
||||
};
|
||||
extraPolicies = {
|
||||
DisableFirefoxStudies = true;
|
||||
DisablePocket = true;
|
||||
DisableTelemetry = true;
|
||||
ExtensionSettings = {};
|
||||
OfferToSaveLogins = false;
|
||||
};
|
||||
};
|
||||
profiles.tdpeuter = {
|
||||
search = {
|
||||
default = "DuckDuckGo";
|
||||
force = true;
|
||||
engines = {
|
||||
"Bing".metaData.hidden = true;
|
||||
"eBay".metaData.hidden = true;
|
||||
|
||||
"Nix Packages" = {
|
||||
urls = [{
|
||||
template = "https://search.nixos.org/packages";
|
||||
params = [
|
||||
{ name = "type"; value = "packages"; }
|
||||
{ name = "query"; value = "{searchTerms}"; }
|
||||
];
|
||||
}];
|
||||
|
||||
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||
definedAliases = [ "@np" ];
|
||||
};
|
||||
"GitHub" = {
|
||||
urls = [{
|
||||
template = "https://github.com/search";
|
||||
params = [
|
||||
{ name = "q"; value = "{searchTerms}"; }
|
||||
{ name = "type"; value = "repositories"; }
|
||||
];
|
||||
}];
|
||||
|
||||
icon = "${pkgs.icosystem}/share/icons/icosystem/scalable/apps/github-mark.svg";
|
||||
definedAliases = [ "@gh" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,10 +1,6 @@
|
|||
{ inputs, lib, config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./apps
|
||||
];
|
||||
|
||||
# Nix Flakes
|
||||
nix.package = pkgs.nixFlakes;
|
||||
nix.extraOptions = ''
|
||||
|
@ -13,13 +9,6 @@
|
|||
keep-derivations = true
|
||||
'';
|
||||
|
||||
fonts.fonts = with pkgs; [
|
||||
corefonts # Calibri for Uni
|
||||
vistafonts
|
||||
|
||||
letter # Personal font
|
||||
];
|
||||
|
||||
# Select internationalisation properties.
|
||||
i18n.defaultLocale = "en_GB.UTF-8";
|
||||
console = {
|
||||
|
|
|
@ -8,7 +8,8 @@ let
|
|||
in {
|
||||
imports = [
|
||||
./dotfiles.nix
|
||||
./mail.nix
|
||||
./firefox.nix # Enables Firefox without setting options
|
||||
./mail.nix # Enables Thunderbird without setting options
|
||||
./secrets.nix
|
||||
];
|
||||
|
||||
|
@ -28,10 +29,13 @@ in {
|
|||
};
|
||||
|
||||
fonts.fonts = with pkgs; [
|
||||
font-awesome # Dependency of zsh
|
||||
corefonts # Calibri for Uni
|
||||
font-awesome_5 # Dependency of Vifm config
|
||||
noto-fonts # Dependency of Zellij config
|
||||
font-awesome # Dependency of zsh
|
||||
letter # Personal font
|
||||
noto-fonts-cjk # Dependency of Zellij config
|
||||
noto-fonts # Dependency of Zellij config
|
||||
vistafonts # Microsoft fonts
|
||||
];
|
||||
|
||||
home-manager.users.tdpeuter = lib.mkIf config.sisyphus.programs.home-manager.enable {
|
||||
|
@ -50,6 +54,7 @@ in {
|
|||
duf # Df alternative
|
||||
fzf
|
||||
glow # Terminal Markdown renderer
|
||||
icosystem # Personal icon theme
|
||||
jellyfin-media-player
|
||||
kitty
|
||||
libreoffice-fresh
|
||||
|
|
60
nixos/modules/users/tdpeuter/firefox.nix
Normal file
60
nixos/modules/users/tdpeuter/firefox.nix
Normal file
|
@ -0,0 +1,60 @@
|
|||
{ config, lib, pkgs, pkgs-unstable, ... }:
|
||||
|
||||
let
|
||||
cfg = config.sisyphus.users.tdpeuter;
|
||||
user = config.users.users.tdpeuter.name;
|
||||
in {
|
||||
config = lib.mkIf cfg.enable {
|
||||
home-manager.users.tdpeuter.programs.firefox = lib.mkIf config.sisyphus.programs.home-manager.enable {
|
||||
enable = true;
|
||||
package = pkgs.firefox.override {
|
||||
cfg = {
|
||||
enableTridactylNative = true;
|
||||
speechSynthesisSupport = true; # Allow Text-to-speech in e.g. Discord
|
||||
};
|
||||
extraPolicies = {
|
||||
DisableFirefoxStudies = true;
|
||||
DisablePocket = true;
|
||||
DisableTelemetry = true;
|
||||
ExtensionSettings = {};
|
||||
OfferToSaveLogins = false;
|
||||
};
|
||||
};
|
||||
profiles.tdpeuter = {
|
||||
search = {
|
||||
default = "DuckDuckGo";
|
||||
force = true;
|
||||
engines = {
|
||||
"Bing".metaData.hidden = true;
|
||||
"eBay".metaData.hidden = true;
|
||||
|
||||
"Nix Packages" = {
|
||||
urls = [{
|
||||
template = "https://search.nixos.org/packages";
|
||||
params = [
|
||||
{ name = "type"; value = "packages"; }
|
||||
{ name = "query"; value = "{searchTerms}"; }
|
||||
];
|
||||
}];
|
||||
|
||||
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||
definedAliases = [ "@np" ];
|
||||
};
|
||||
"GitHub" = {
|
||||
urls = [{
|
||||
template = "https://github.com/search";
|
||||
params = [
|
||||
{ name = "q"; value = "{searchTerms}"; }
|
||||
{ name = "type"; value = "repositories"; }
|
||||
];
|
||||
}];
|
||||
|
||||
icon = "${pkgs.icosystem}/share/icons/icosystem/scalable/apps/github-mark.svg";
|
||||
definedAliases = [ "@gh" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue