nixos-config/modules/dev/vcs.nix

20 lines
363 B
Nix
Raw Normal View History

# All of the version control systems are here!
{ config, options, lib, pkgs, ... }:
with lib;
2020-10-20 15:56:10 +00:00
2020-11-05 06:39:02 +00:00
let
cfg = config.modules.dev.vcs;
2020-10-25 15:49:14 +00:00
in {
options.modules.dev.vcs = {
enable = mkOption {
type = types.bool;
default = false;
};
};
2020-10-20 15:56:10 +00:00
config = mkIf cfg.enable {
2020-10-25 15:49:14 +00:00
my.packages = with pkgs; [ gitAndTools.gitFull mercurial subversion ];
};
}