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
# Supporting
./buckets.nix
./nginx.nix
@ -69,15 +70,6 @@
environment.variables.EDITOR = "vim";
# Nix configuration
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
nix.settings.auto-optimise-store = true;
# OpenSSH
services.openssh = {
enable = true;