From 592b767717ebe1ccdd722b5b39f5d906aa1ee695 Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Sat, 26 Oct 2024 02:16:31 -0400 Subject: [PATCH] make new separate file for dev tools --- modules/desktop/default.nix | 1 + modules/devtools.nix | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 modules/devtools.nix diff --git a/modules/desktop/default.nix b/modules/desktop/default.nix index 5670b54..0633ebe 100644 --- a/modules/desktop/default.nix +++ b/modules/desktop/default.nix @@ -39,6 +39,7 @@ with lib; }; sconfig = { + devtools.enable = true; security-tools = true; }; diff --git a/modules/devtools.nix b/modules/devtools.nix new file mode 100644 index 0000000..66aefc2 --- /dev/null +++ b/modules/devtools.nix @@ -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 + ]; + }; +}