aboutsummaryrefslogtreecommitdiff
path: root/system/programs.nix
blob: 9db68d9f769650d2db985c923a206ae1bb9fb0a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{...}: {
  # Fix firefox not being properly sandboxed and security
  environment.etc."apparmor.d/firefox-local".text = ''
    # This profile allows everything and only exists to give the
    # application a name instead of having the label "unconfined"
    abi <abi/4.0>,
    include <tunables/global>
    profile firefox-local
    /home/mun/bin/firefox/{firefox,firefox-bin,updater}
    flags=(unconfined) {
    	userns,
    	# Site-specific additions and overrides. See local/README for details.
    	include if exists <local/firefox>
    }
  '';

  programs.firefox = {
    enable = true;
    languagePacks = ["en-GB" "cs" "sk" "de"];
    policies = {
      DefaultDownloadDirectory = "\${home}/Downloads";
      Extensions.Install = map (name: "https://addons.mozilla.org/firefox/downloads/latest/${name}") [
        # Privacy
        "ublock-origin"
        "privacy-badger17"
        "torproject-snowflake"
        "clearurls"
        "flagfox"
        "user-agent-string-switcher"
        "facebook-container"

        # QoL
        "sidebery"
        "onetab"
        "bitwarden-password-manager"

        # YouTube
        "return-youtube-dislikes"
        "sponsorblock"
        "youtube-recommended-videos"
        "hide-members-only-videos"

        # Theming
        "styl-us"
        "firefox-color"
        "darkreader"
      ];
      Extensions.Uninstall = [
        "ddg@search.mozilla.org"
        "google@search.mozilla.org"
        "bing@search.mozilla.org"
        "amazondotcom@search.mozilla.org"
        "ebay@search.mozilla.org"
        "twitter@search.mozilla.org"
      ];
      DisableFirefoxStudies = true;
      DisableTelemetry = true;
      DisableFeedbackCommands = true;
      DisablePocket = true;
    };
  };
  programs.zsh.enable = true;

  programs.steam = {
    enable = true;
    remotePlay.openFirewall = true;
    dedicatedServer.openFirewall = true;
    localNetworkGameTransfers.openFirewall = true;
  };

  programs.ssh.startAgent = true;
}