marleyos/modules/home/programs/nh/default.nix

20 lines
342 B
Nix
Raw Normal View History

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