about summary refs log tree commit diff
path: root/modules/chromium.nix
blob: c7842d51ddada1f4f158772c9e7aa9ff007b4092 (plain) (blame)
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
{
  config,
  lib,
  pkgs,
  ...
}:
with lib;
let
  cfg = config.nixfiles.modules.chromium;
in
{
  options.nixfiles.modules.chromium.enable = mkEnableOption "Chromium";

  config = mkIf cfg.enable {
    hm = {
      home.packages = with pkgs; [ profile-cleaner ];

      programs.chromium = {
        enable = true;

        package = pkgs.ungoogled-chromium;

        extensions = [
          { id = "cjpalhdlnbpafiamejdnhcphjbkeiagm"; } # uBlock Origin
        ];
      };
    };
  };
}

Consider giving Nix/NixOS a try! <3