diff --git a/modules/home/common/env/rust.nix b/modules/home/common/env/rust.nix new file mode 100644 index 0000000..6afef6c --- /dev/null +++ b/modules/home/common/env/rust.nix @@ -0,0 +1,22 @@ +{ + pkgs, + lib, + config, + ... +}: +with lib; +let + cfg = config.home.env.rust; +in +{ + options.home.env.rust = { + enable = mkEnableOption "Zen Editor options"; + }; + config = mkIf cfg.enable { + + home.packages = with pkgs; [ + rustup + ]; + + }; +}