feat: add chromium module

nixos
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 = [
./adb.nix
./bspwm
./chromium.nix
./code.nix
./direnv.nix
./firefox.nix