summaryrefslogtreecommitdiff
path: root/features/system/cli/utils/nh.nix
blob: e34157e6bbc6b42a755102e08b067b965a3538c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;
    };
  };
}