{ lib, config, pkgs, ... }: let inherit (lib) mkEnableOption mkIf mkDefault; cfg = config.marleyos.programs.nh; home = config.home.homeDirectory; in { options.marleyos.programs.nh.enable = mkEnableOption "nh"; config = mkIf cfg.enable { home.packages = with pkgs; [ nh ]; home.sessionVariables.FLAKE = mkDefault "${home}/marleyos"; }; }