devenv: init
This commit is contained in:
parent
5cc2863e52
commit
cd703beb2d
2 changed files with 25 additions and 0 deletions
23
modules/nixos/tools/devenv/default.nix
Normal file
23
modules/nixos/tools/devenv/default.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
|
@ -110,6 +110,8 @@ in
|
|||
factorio-server = disabled;
|
||||
};
|
||||
|
||||
tools.devenv = enabled;
|
||||
|
||||
system = {
|
||||
hardware = {
|
||||
bluetooth = enabled;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue