mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 06:28:11 +09:00
fix: enable nh in base cli
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
./java
|
||||
./kde.nix
|
||||
./nautilus.nix
|
||||
./nh.nix
|
||||
./niri
|
||||
./noctalia
|
||||
./opencode.nix
|
||||
|
||||
@@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -20,6 +20,7 @@ in
|
||||
ssh.enable = true;
|
||||
direnv.enable = true;
|
||||
gnupg.enable = true;
|
||||
nh.enable = true;
|
||||
openssh.enable = cfg.sshServer;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user