24 lines
378 B
Nix
24 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";
|
||
|
};
|
||
|
}
|