From 81802d380742be12083209f33952c028a6e8ccfb Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Sun, 3 Sep 2023 20:08:12 +0400 Subject: [PATCH] ungoogled chromium for PWAs --- hosts/sakotop/configuration.nix | 1 + modules/desktop/browsers/default.nix | 1 + .../browsers/ungoogled-chromium/default.nix | 16 ++++++++++++++++ 3 files changed, 18 insertions(+) create mode 100644 modules/desktop/browsers/ungoogled-chromium/default.nix 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 + ]; + }; +}