diff --git a/hosts/sakotop/configuration.nix b/hosts/sakotop/configuration.nix index 9ba82946..948d546a 100644 --- a/hosts/sakotop/configuration.nix +++ b/hosts/sakotop/configuration.nix @@ -26,6 +26,7 @@ browsers = { firefox.enable = true; qutebrowser.enable = false; + ungoogled-chromium = true; }; apps = { nemo.enable = true; diff --git a/modules/desktop/browsers/default.nix b/modules/desktop/browsers/default.nix index 77a08ee3..bfa24097 100644 --- a/modules/desktop/browsers/default.nix +++ b/modules/desktop/browsers/default.nix @@ -2,5 +2,6 @@ imports = [ ./qutebrowser ./firefox + ./ungoogled-chromium ]; } diff --git a/modules/desktop/browsers/ungoogled-chromium/default.nix b/modules/desktop/browsers/ungoogled-chromium/default.nix new file mode 100644 index 00000000..e78f00de --- /dev/null +++ b/modules/desktop/browsers/ungoogled-chromium/default.nix @@ -0,0 +1,16 @@ +{ outputs, options, config, lib, pkgs, ...}: +with lib; +let + cfg = config.modules.desktop.browsers.ungoogled-chromium; +in +{ + options.modules.desktop.browsers.ungoogled-chromium = { + enable = mkEnableOption false; + }; + + config = mkIf cfg.enable { + users.users.sako.packages = with pkgs; [ + ungoogled-chromium + ]; + }; +}