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

@ -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;
};
};
}