This commit is contained in:
Chris Kruining 2024-07-23 20:02:53 +02:00
parent 3aa8cff626
commit ae76467d45
2 changed files with 28 additions and 1 deletions

View file

@ -7,7 +7,7 @@ in
options.modules.develop.dotnet = let
inherit (lib.options) mkEnableOption;
in {
enable = mkEnableOption "Rust developmnt";
enable = mkEnableOption ".NET developmnt";
};
config = mkMerge [

27
modules/develop/js.nix Normal file
View file

@ -0,0 +1,27 @@
{ inputs, config, options, lib, pkgs, ... }:
let
inherit (lib.attrsets) attrValues;
inherit (lib.modules) mkIf mkMerge;
in
{
options.modules.develop.js = let
inherit (lib.options) mkEnableOption;
in {
enable = mkEnableOption "JS developmnt";
};
config = mkMerge [
(mkIf config.modules.develop.js.enable {
user.packages = attrValues {
};
})
(mkIf config.modules.develop.xdg.enable {
home = {
# sessionVariables.CARGO_HOME = "$XDG_DATA_HOME/cargo";
# sessionPath = ["$CARGO_HOME/bin"];
};
})
];
}