This commit is contained in:
@@ -28,11 +28,13 @@ in
|
||||
my.dev.ruby.enable = lib.mkDefault hm.enabledByDefault;
|
||||
}
|
||||
(lib.mkIf cfg.enable {
|
||||
home.packages = feature.packages;
|
||||
home.sessionVariables = {
|
||||
GEM_HOME = "${config.xdg.dataHome}/ruby/gems";
|
||||
GEM_PATH = "${config.xdg.dataHome}/ruby/gems";
|
||||
GEM_SPEC_CACHE = "${config.xdg.dataHome}/ruby/specs";
|
||||
home = {
|
||||
inherit (feature) packages;
|
||||
sessionVariables = {
|
||||
GEM_HOME = "${config.xdg.dataHome}/ruby/gems";
|
||||
GEM_PATH = "${config.xdg.dataHome}/ruby/gems";
|
||||
GEM_SPEC_CACHE = "${config.xdg.dataHome}/ruby/specs";
|
||||
};
|
||||
};
|
||||
})
|
||||
];
|
||||
|
||||
@@ -10,6 +10,11 @@ let
|
||||
in
|
||||
{
|
||||
options = {
|
||||
devShells.ruby = lib.mkOption {
|
||||
type = lib.types.package;
|
||||
default = feature.devShell;
|
||||
description = "Ruby development shell with interpreter and Solargraph LSP";
|
||||
};
|
||||
my.dev.ruby = {
|
||||
enable = lib.mkEnableOption "Install Ruby tooling globally";
|
||||
users = lib.mkOption {
|
||||
@@ -18,10 +23,5 @@ in
|
||||
description = "Users to install Ruby packages for";
|
||||
};
|
||||
};
|
||||
devShells.ruby = lib.mkOption {
|
||||
type = lib.types.package;
|
||||
default = feature.devShell;
|
||||
description = "Ruby development shell with interpreter and Solargraph LSP";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user