feat: move nixos-specific modules to their own module that is dynamically imported

This commit is contained in:
ahwx 2026-02-27 01:27:52 +01:00
parent 0ec2828d3e
commit 6bd255f636
2 changed files with 38 additions and 26 deletions

25
modules/core/nixos.nix Normal file
View file

@ -0,0 +1,25 @@
{
self,
pkgs,
lib,
inputs,
...
}:
{
nix = {
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
};
programs.nix-ld = {
enable = true;
libraries = with pkgs; [ ];
};
services.envfs.enable = true;
system.stateVersion = "24.05";
}