refactor: split code into modules

This commit is contained in:
tux
2025-02-22 11:11:59 +05:30
parent 65649c30cc
commit 29bd3485ca
8 changed files with 103 additions and 66 deletions

16
modules/base/nh.nix Normal file
View File

@ -0,0 +1,16 @@
{
config,
username,
...
}: {
programs.nh = {
enable = true;
clean = {
enable = !config.nix.gc.automatic;
dates = "weekly";
};
flake = "/home/${username}/Projects/nixos-config";
};
}