devenv: init

This commit is contained in:
Christoph Hollizeck 2024-12-04 12:12:32 +01:00
parent 9be5147133
commit cb76031ca7
Signed by: Daholli
GPG key ID: 249300664F2AF2C7
2 changed files with 25 additions and 0 deletions

View file

@ -0,0 +1,23 @@
{
config,
lib,
namespace,
pkgs,
...
}:
let
inherit (lib) mkIf mkEnableOption;
cfg = config.${namespace}.tools.devenv;
in
{
options.${namespace}.tools.devenv = {
enable = mkEnableOption "Whether or not to enable direnv.";
};
config = mkIf cfg.enable {
environment.systemPackages = [
pkgs.devenv
];
};
}

View file

@ -110,6 +110,8 @@ in
factorio-server = disabled;
};
tools.devenv = enabled;
system = {
hardware = {
bluetooth = enabled;