From 73847d41e5348a72a6c87a9891b7122492d0e64a Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Mon, 4 Sep 2023 14:18:20 +0400 Subject: [PATCH] waaaa --- hosts/sakotop/configuration.nix | 1 + modules/desktop/browsers/chromium/default.nix | 16 ++++++++++++++++ modules/desktop/browsers/default.nix | 1 + 3 files changed, 18 insertions(+) create mode 100644 modules/desktop/browsers/chromium/default.nix diff --git a/hosts/sakotop/configuration.nix b/hosts/sakotop/configuration.nix index fb87cbe4..cb172a57 100644 --- a/hosts/sakotop/configuration.nix +++ b/hosts/sakotop/configuration.nix @@ -26,6 +26,7 @@ browsers = { firefox.enable = true; qutebrowser.enable = false; + chromium.enable = true; }; chat = { teams.enable = true; diff --git a/modules/desktop/browsers/chromium/default.nix b/modules/desktop/browsers/chromium/default.nix new file mode 100644 index 00000000..884bf2a2 --- /dev/null +++ b/modules/desktop/browsers/chromium/default.nix @@ -0,0 +1,16 @@ +{ outputs, options, config, lib, pkgs, ...}: +with lib; +let + cfg = config.modules.desktop.browsers.chromium; +in +{ + options.modules.desktop.browsers.chromium = { + enable = mkEnableOption false; + }; + + config = mkIf cfg.enable { + users.users.sako.packages = with pkgs; [ + chromium + ]; + }; +} diff --git a/modules/desktop/browsers/default.nix b/modules/desktop/browsers/default.nix index 77a08ee3..0a7ecd75 100644 --- a/modules/desktop/browsers/default.nix +++ b/modules/desktop/browsers/default.nix @@ -2,5 +2,6 @@ imports = [ ./qutebrowser ./firefox + ./chromium ]; }