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

19 lines
342 B
Nix

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