feat: add chromium module

This commit is contained in:
Moritz Böhme 2023-04-16 17:53:50 +02:00
parent 58f6391273
commit a8c51c376c
Signed by: moritz
GPG key ID: 970C6E89EB0547A9
2 changed files with 27 additions and 0 deletions

View file

@ -0,0 +1,26 @@
{ config
, lib
, pkgs
, ...
}:
with lib;
let
cfg = config.my.programs.chromium;
in
{
options.my.programs.chromium = {
enable = mkEnableOption "chromium";
package = mkOption {
type = types.package;
default = pkgs.stable.chromium;
defaultText = "pkgs.chromium";
description = "Chromium package to install.";
};
};
config = mkIf cfg.enable {
programs.chromium.enable = true;
environment.systemPackages = [ cfg.package ];
};
}

View file

@ -2,6 +2,7 @@
imports = [ imports = [
./adb.nix ./adb.nix
./bspwm ./bspwm
./chromium.nix
./code.nix ./code.nix
./direnv.nix ./direnv.nix
./firefox.nix ./firefox.nix