feat: better modules aragement.

This commit is contained in:
CronyAkatsuki 2025-03-23 20:01:51 +01:00
parent de11ee0676
commit 6e967a751f
49 changed files with 27 additions and 19 deletions

View file

@ -0,0 +1,21 @@
{
config,
lib,
...
}: {
options = {
crony.nh.enable = lib.mkEnableOption "Enable nh and set it up for automatic cleaning.";
};
config = lib.mkIf config.crony.nh.enable {
# Install nh
programs.nh = {
enable = true;
flake = "/home/crony/Repos/nixos";
clean = {
enable = true;
extraArgs = "--keep 5 --keep-since 3d";
};
};
};
}