Files
nixconfig/systems/gateway/default.nix
T
2026-06-21 23:09:33 +02:00

26 lines
533 B
Nix

{ config, lib, inputs, ... }: {
imports = [ ./hardware.nix ../../modules/server ];
system.autoUpgrade = {
enable = true;
flake = "git+https://git.helcel.net/sora/nixconfig";
flags = [
"--no-write-lock-file"
];
dates = "04:00";
randomizedDelaySec = "30min";
allowReboot = false;
};
networking.extraHosts = ''
10.10.1.2 git.helcel.net
10.10.1.2 avalon.helcel.net
'';
swapDevices = [ {
device = "/swapfile";
size = 2 * 1024; # Size in megabytes (4 GB)
} ];
}