feat: add chromium module
This commit is contained in:
parent
58f6391273
commit
a8c51c376c
2 changed files with 27 additions and 0 deletions
26
modules/programs/chromium.nix
Normal file
26
modules/programs/chromium.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue