gui: add firefox conf, merge common prefs
This commit is contained in:
parent
be61b0fce1
commit
5861619218
140
gui/default.nix
140
gui/default.nix
@ -23,6 +23,91 @@ let
|
|||||||
startAt = "*:0/5";
|
startAt = "*:0/5";
|
||||||
path = [ promnesia hpi ];
|
path = [ promnesia hpi ];
|
||||||
}];
|
}];
|
||||||
|
commonConfigs = {
|
||||||
|
fonts.fonts = with pkgs; [ go-font (callPackage ../pkgs/kurinto.nix { }) ];
|
||||||
|
sound.enable = true;
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
bc
|
||||||
|
black
|
||||||
|
brave
|
||||||
|
drawterm
|
||||||
|
go-font
|
||||||
|
hpi
|
||||||
|
pcsctools
|
||||||
|
promnesia
|
||||||
|
rage
|
||||||
|
rpr
|
||||||
|
vlc
|
||||||
|
zeal
|
||||||
|
|
||||||
|
(callPackage ../pkgs/tailscale-systray.nix { })
|
||||||
|
(callPackage ../pkgs/govulncheck.nix { })
|
||||||
|
(callPackage ../configs/helix.nix { })
|
||||||
|
];
|
||||||
|
|
||||||
|
systemd.user.services =
|
||||||
|
(lib.listToAttrs (builtins.map xinlib.jobToUserService jobs))
|
||||||
|
// promnesiaService;
|
||||||
|
|
||||||
|
programs = {
|
||||||
|
firefox = {
|
||||||
|
enable = true;
|
||||||
|
preferences = {
|
||||||
|
# TODO: confirm no issues
|
||||||
|
"dom.allow_cut_copy" = false;
|
||||||
|
"dom.event.clipboardevents.enabled" = false;
|
||||||
|
"media.peerconnection.enabled" = false;
|
||||||
|
|
||||||
|
"beacon.enabled" = false;
|
||||||
|
"browser.aboutConfig.showWarning" = false;
|
||||||
|
"browser.contentblocking.category" = "strict";
|
||||||
|
"browser.newtabpage.activity-stream.feeds.recommendationprovider" =
|
||||||
|
false;
|
||||||
|
"browser.newtabpage.activity-stream.feeds.section.topstories" = false;
|
||||||
|
"browser.newtabpage.activity-stream.section.highlights.includeBookmarks" =
|
||||||
|
false;
|
||||||
|
"browser.newtabpage.activity-stream.section.highlights.includeDownloads" =
|
||||||
|
false;
|
||||||
|
"browser.newtabpage.activity-stream.section.highlights.includePocket" =
|
||||||
|
false;
|
||||||
|
"browser.newtabpage.activity-stream.section.highlights.includeVisited" =
|
||||||
|
false;
|
||||||
|
"browser.newtabpage.activity-stream.showSearch" = false;
|
||||||
|
"browser.newtabpage.activity-stream.showSponsored" = false;
|
||||||
|
"browser.newtabpage.activity-stream.showSponsoredTopSites" = false;
|
||||||
|
"browser.newtabpage.activity-stream.telemetry" = false;
|
||||||
|
"browser.newtabpage.activity-stream.telemetry.structuredIngestion.endpoint" =
|
||||||
|
"http://127.0.0.1/null";
|
||||||
|
"browser.newtabpage.enabled" = false;
|
||||||
|
"browser.newtabpage.pinned" = false;
|
||||||
|
"browser.search.suggest.enabled" = false;
|
||||||
|
"browser.search.update" = false;
|
||||||
|
"browser.topsites.contile.enabled" = false;
|
||||||
|
"browser.urlbar.suggest.quicksuggest.nonsponsored" = false;
|
||||||
|
"browser.urlbar.suggest.quicksuggest.sponsored" = false;
|
||||||
|
"browser.urlbar.suggest.searches" = false;
|
||||||
|
"browser.urlbar.trimURLs" = false;
|
||||||
|
"datareporting.healthreport.uploadEnabled" = false;
|
||||||
|
"devtools.cache.disabled" = true;
|
||||||
|
"extensions.pocket.enabled" = false;
|
||||||
|
"geo.enabled" = false;
|
||||||
|
"geo.provider.network.url" = "";
|
||||||
|
"geo.provider.use_geoclue" = false;
|
||||||
|
"network.dns.disablePrefetch" = true;
|
||||||
|
"network.http.speculative-parallel-limit" = 0;
|
||||||
|
"network.IDN_show_punycode" = true;
|
||||||
|
"network.predictor.enabled" = false;
|
||||||
|
"network.prefetch-next" = false;
|
||||||
|
"privacy.resistFingerprinting" = true;
|
||||||
|
"security.OCSP.enabled" = false;
|
||||||
|
"services.sync.prefs.sync-seen.browser.newtabpage.activity-stream.section.highlights.includePocket" =
|
||||||
|
false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
services = { pcscd.enable = true; };
|
||||||
|
security.rtkit.enable = true;
|
||||||
|
};
|
||||||
in with lib; {
|
in with lib; {
|
||||||
imports = [ ./gnome.nix ./kde.nix ./xfce.nix ./arcan.nix ];
|
imports = [ ./gnome.nix ./kde.nix ./xfce.nix ./arcan.nix ];
|
||||||
|
|
||||||
@ -46,61 +131,14 @@ in with lib; {
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = mkMerge [
|
config = mkMerge [
|
||||||
(mkIf config.arcan.enable {
|
(mkIf config.arcan.enable { services = { xserver.enable = false; }; }
|
||||||
sound.enable = true;
|
// commonConfigs)
|
||||||
services = { xserver.enable = false; };
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
brave
|
|
||||||
firefox
|
|
||||||
drawterm
|
|
||||||
go-font
|
|
||||||
vlc
|
|
||||||
pcsctools
|
|
||||||
];
|
|
||||||
})
|
|
||||||
(mkIf (config.kde.enable || config.gnome.enable || config.xfce.enable) {
|
(mkIf (config.kde.enable || config.gnome.enable || config.xfce.enable) {
|
||||||
|
services = { xserver.enable = true; };
|
||||||
services = {
|
|
||||||
xserver.enable = true;
|
|
||||||
pcscd.enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
fonts.fonts = with pkgs; [
|
|
||||||
go-font
|
|
||||||
(callPackage ../pkgs/kurinto.nix { })
|
|
||||||
];
|
|
||||||
|
|
||||||
# TODO: TEMP FIX
|
# TODO: TEMP FIX
|
||||||
systemd.services.NetworkManager-wait-online.serviceConfig.ExecStart =
|
systemd.services.NetworkManager-wait-online.serviceConfig.ExecStart =
|
||||||
lib.mkForce [ "" "${pkgs.networkmanager}/bin/nm-online -q" ];
|
lib.mkForce [ "" "${pkgs.networkmanager}/bin/nm-online -q" ];
|
||||||
|
} // commonConfigs)
|
||||||
sound.enable = true;
|
|
||||||
security.rtkit.enable = true;
|
|
||||||
|
|
||||||
systemd.user.services =
|
|
||||||
(lib.listToAttrs (builtins.map xinlib.jobToUserService jobs))
|
|
||||||
// promnesiaService;
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
bc
|
|
||||||
black
|
|
||||||
brave
|
|
||||||
drawterm
|
|
||||||
firefox
|
|
||||||
hpi
|
|
||||||
pcsctools
|
|
||||||
promnesia
|
|
||||||
rage
|
|
||||||
rpr
|
|
||||||
vlc
|
|
||||||
zeal
|
|
||||||
|
|
||||||
(callPackage ../pkgs/tailscale-systray.nix { })
|
|
||||||
(callPackage ../pkgs/govulncheck.nix { })
|
|
||||||
(callPackage ../configs/helix.nix { })
|
|
||||||
];
|
|
||||||
|
|
||||||
})
|
|
||||||
(mkIf config.pipewire.enable {
|
(mkIf config.pipewire.enable {
|
||||||
services.pipewire = {
|
services.pipewire = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -158,7 +158,6 @@ in {
|
|||||||
barrier
|
barrier
|
||||||
bitwarden
|
bitwarden
|
||||||
brave
|
brave
|
||||||
firefox
|
|
||||||
fzf
|
fzf
|
||||||
google-chrome-dev
|
google-chrome-dev
|
||||||
ispell
|
ispell
|
||||||
|
@ -187,7 +187,6 @@ in {
|
|||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
qutebrowser
|
qutebrowser
|
||||||
firefox
|
|
||||||
dtc
|
dtc
|
||||||
rofi
|
rofi
|
||||||
polybar
|
polybar
|
||||||
|
Loading…
Reference in New Issue
Block a user