summaryrefslogtreecommitdiff
path: root/nixos/features/cli/utils
diff options
context:
space:
mode:
authortriethyl <triethylammonium@pm.me>2025-09-02 10:48:21 -0400
committertriethyl <triethylammonium@pm.me>2025-09-02 10:48:21 -0400
commit31c316d19cd974bb81a5d6de62142ff24db1c78e (patch)
treecb941422c76cb8953830a8d58c8e14dca1a10319 /nixos/features/cli/utils
parent1c21018347aa277caba74e554cb8d1b1e7fc6bed (diff)
reorganized directory structure
Diffstat (limited to 'nixos/features/cli/utils')
-rw-r--r--nixos/features/cli/utils/nh.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/nixos/features/cli/utils/nh.nix b/nixos/features/cli/utils/nh.nix
new file mode 100644
index 0000000..e34157e
--- /dev/null
+++ b/nixos/features/cli/utils/nh.nix
@@ -0,0 +1,17 @@
+{ config, lib, ... }: let
+ cfg = config.features.cli.utils.nh;
+in {
+ options.features.cli.utils.nh = {
+ enable = lib.mkEnableOption "nh";
+ flake = lib.mkOption {
+ type = lib.types.str;
+ description = "Absolute path to the flake.";
+ };
+ };
+ config = lib.mkIf cfg.enable {
+ programs.nh = {
+ enable = true;
+ flake = cfg.flake;
+ };
+ };
+}