17 lines
304 B
Nix
17 lines
304 B
Nix
{ pkgs, config, lib, ...}:
|
|
let cfg = config.system-pkgs; in {
|
|
options.system-pkgs = {
|
|
enable = lib.mkOption {
|
|
type = lib.types.bool;
|
|
default = true;
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
environment.systemPackages = with pkgs; [
|
|
git
|
|
vim
|
|
tmux
|
|
];
|
|
};
|
|
}
|