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 ]; }