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

View file

@ -8,6 +8,7 @@
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
../common
./home.nix
# Services
./btrbk.nix
@ -87,21 +88,6 @@
environment.variables.EDITOR = "vim";
# Nix configuration
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;
};
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;