mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
make new separate file for dev tools
This commit is contained in:
parent
79405643af
commit
592b767717
2 changed files with 15 additions and 0 deletions
|
@ -39,6 +39,7 @@ with lib;
|
|||
};
|
||||
|
||||
sconfig = {
|
||||
devtools.enable = true;
|
||||
security-tools = true;
|
||||
};
|
||||
|
||||
|
|
14
modules/devtools.nix
Normal file
14
modules/devtools.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue