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
+1
View File
@@ -16,6 +16,7 @@
./java
./kde.nix
./nautilus.nix
./nh.nix
./niri
./noctalia
./opencode.nix
+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";
};
};
}
+1
View File
@@ -20,6 +20,7 @@ in
ssh.enable = true;
direnv.enable = true;
gnupg.enable = true;
nh.enable = true;
openssh.enable = cfg.sshServer;
};