mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 05:18:12 +09:00
Merge pull request #11 from moons-14/codex/add-nh-to-nixos
Add `nh` application module and enable it in CLI base
This commit is contained in:
@@ -16,6 +16,7 @@
|
|||||||
./java
|
./java
|
||||||
./kde.nix
|
./kde.nix
|
||||||
./nautilus.nix
|
./nautilus.nix
|
||||||
|
./nh.nix
|
||||||
./niri
|
./niri
|
||||||
./noctalia
|
./noctalia
|
||||||
./opencode.nix
|
./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;
|
ssh.enable = true;
|
||||||
direnv.enable = true;
|
direnv.enable = true;
|
||||||
gnupg.enable = true;
|
gnupg.enable = true;
|
||||||
|
nh.enable = true;
|
||||||
openssh.enable = cfg.sshServer;
|
openssh.enable = cfg.sshServer;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user