modularize system config

This commit is contained in:
Satria 2026-02-01 21:27:03 +07:00
commit d7453265a1
14 changed files with 217 additions and 180 deletions

View file

@ -1,20 +1,9 @@
{ hostname, timezone, ... }: {
system.stateVersion = "24.11";
imports = [ ./apps.nix ];
nixpkgs.config.allowUnfree = true;
nix = {
settings = {
experimental-features = [ "nix-command" "flakes" ];
auto-optimise-store = true;
};
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d -d";
};
optimise.automatic = true;
};
imports = [
./utilities.nix
./nix-conf.nix
];
networking.hostName = "${hostname}";
time.timeZone = timezone;