marleyos/modules/home/programs/nh/default.nix
2024-11-18 21:17:19 -08:00

23 lines
378 B
Nix

{
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";
};
}