.
This commit is contained in:
parent
2ec7c74542
commit
3aa8cff626
3 changed files with 29 additions and 2 deletions
27
modules/develop/dotnet.nix
Normal file
27
modules/develop/dotnet.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{ inputs, config, options, lib, pkgs, ... }:
|
||||
let
|
||||
inherit (lib.attrsets) attrValues;
|
||||
inherit (lib.modules) mkIf mkMerge;
|
||||
in
|
||||
{
|
||||
options.modules.develop.dotnet = let
|
||||
inherit (lib.options) mkEnableOption;
|
||||
in {
|
||||
enable = mkEnableOption "Rust developmnt";
|
||||
};
|
||||
|
||||
config = mkMerge [
|
||||
(mkIf config.modules.develop.dotnet.enable {
|
||||
user.packages = attrValues {
|
||||
};
|
||||
|
||||
})
|
||||
|
||||
(mkIf config.modules.develop.xdg.enable {
|
||||
home = {
|
||||
# sessionVariables.CARGO_HOME = "$XDG_DATA_HOME/cargo";
|
||||
# sessionPath = ["$CARGO_HOME/bin"];
|
||||
};
|
||||
})
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue