nixos/modules/shell/nix/nh.nix

20 lines
418 B
Nix
Raw Normal View History

2024-08-08 20:59:49 +04:00
{ inputs, options, config, lib, pkgs, ...}:
# funny nix cli
let cfg = config.modules.shell.nix.nh;
in
{
options.modules.shell.nix.nh = {
enable = lib.mkEnableOption false;
};
config = lib.mkIf cfg.enable {
programs.nh = {
enable = true;
# TODO try this later
# clean.enable = true;
# clean.extraArgs = "--keep-since 4d --keep 3";
2024-08-08 21:11:54 +04:00
flake = "/home/sako/nixos";
2024-08-08 20:59:49 +04:00
};
};
}