fix: enable nh in base cli

This commit is contained in:
2026-06-06 14:24:35 +09:00
parent dec46e9ad9
commit 7e49ed6530
3 changed files with 23 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
{
username,
lib,
config,
...
}:
let
cfg = config.my.applications.nh;
in
{
options.my.applications.nh = {
enable = lib.mkEnableOption "nh Nix CLI helper";
};
config = lib.mkIf cfg.enable {
programs.nh = {
enable = true;
flake = "/home/${username}/dotfiles";
};
};
}