make new separate file for dev tools

This commit is contained in:
Sean Buckley 2024-10-26 02:16:31 -04:00
parent 79405643af
commit 592b767717
2 changed files with 15 additions and 0 deletions

View file

@ -39,6 +39,7 @@ with lib;
};
sconfig = {
devtools.enable = true;
security-tools = true;
};

14
modules/devtools.nix Normal file
View file

@ -0,0 +1,14 @@
{ config, pkgs, lib, ... }:
let
cfg = config.sconfig.devtools;
in
{
options.sconfig.devtools.enable = lib.mkEnableOption "Development Tools";
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs;
[
rustc.llvmPackages.lld
];
};
}