Modularize nix config

This commit is contained in:
Julien Hémono 2025-11-23 12:53:18 +01:00
parent f2e34e4c77
commit d0b1495ede
4 changed files with 28 additions and 24 deletions

18
hosts/common/nix.nix Normal file
View file

@ -0,0 +1,18 @@
{ config, pkgs, ... }:
{
nix = {
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
settings = {
experimental-features = [ "nix-command" "flakes" ];
auto-optimise-store = true;
trusted-users = [ "jhemono" ];
};
channel.enable = false;
};
}