2024-11-18 21:17:03 -08:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
2025-01-13 21:05:10 -08:00
|
|
|
}: let
|
2024-11-18 21:17:03 -08:00
|
|
|
cfg = config.marleyos.programs.nh;
|
|
|
|
home = config.home.homeDirectory;
|
2025-01-13 21:05:10 -08:00
|
|
|
in {
|
|
|
|
options.marleyos.programs.nh.enable = lib.mkEnableOption "nh";
|
2024-11-18 21:17:03 -08:00
|
|
|
|
2025-01-13 21:05:10 -08:00
|
|
|
config = lib.mkIf cfg.enable {
|
2024-11-18 21:17:03 -08:00
|
|
|
home.packages = with pkgs; [
|
|
|
|
nh
|
|
|
|
];
|
|
|
|
|
2025-01-13 21:05:10 -08:00
|
|
|
home.sessionVariables.FLAKE = lib.mkDefault "${home}/marleyos";
|
2024-11-18 21:17:03 -08:00
|
|
|
};
|
|
|
|
}
|