feat: add try

This commit is contained in:
Rasyidan Akbar F. 2025-12-06 11:39:20 +07:00
commit 0e98ce2214
3 changed files with 36 additions and 3 deletions

View file

@ -8,6 +8,7 @@
./devtools/ai-tools.nix
./devtools/languages.nix
./devtools/default.nix
./devtools/try.nix
./secrets.nix
];
@ -28,6 +29,11 @@
claude.zai.enable = lib.mkDefault true;
};
rsydn.try = {
enable = lib.mkDefault true;
path = "~/src/tries";
};
rsydn.devTools = {
enable = lib.mkDefault true;
packages = with pkgs; [

View file

@ -0,0 +1,24 @@
{ config, lib, pkgs, try, ... }:
let
inherit (lib) mkEnableOption mkOption types mkIf;
cfg = config.rsydn.try;
in {
imports = [ try.homeModules.default ];
options.rsydn.try = {
enable = mkEnableOption "Try - temporary project directory manager";
path = mkOption {
type = types.str;
default = "~/src/tries";
description = "Storage directory for try experiment instances.";
};
};
config = mkIf cfg.enable {
programs.try = {
enable = true;
path = cfg.path;
};
};
}