2021-04-30 23:36:48 +02:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports =
|
|
|
|
[
|
|
|
|
./hardware-configuration.nix
|
|
|
|
../../configuration/common
|
2021-12-07 19:31:17 +01:00
|
|
|
|
|
|
|
./backup-scripts.nix
|
2021-04-30 23:36:48 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
|
|
|
networking.hostName = "palladium";
|
|
|
|
|
|
|
|
networking.useDHCP = false;
|
2022-01-11 19:48:43 +01:00
|
|
|
networking.interfaces.enp3s0.ipv6.addresses = [ { address = "2a01:4f8:1c0c:8221::11"; prefixLength = 64; } ];
|
|
|
|
networking.defaultGateway6 = { address = "2a01:4f8:1c0c:8221::1"; interface = "enp3s0"; };
|
|
|
|
networking.nameservers = [ "fd00:152:152::1" ];
|
2021-04-30 23:36:48 +02:00
|
|
|
|
2021-05-01 13:01:08 +02:00
|
|
|
# Keeping the harddrives quiet
|
|
|
|
services.udev.extraRules = ''
|
|
|
|
KERNEL=="sd?[0-9]", ENV{ID_MODEL}=="ST1000DM003-1SB102", ACTION=="add", RUN+="${pkgs.hdparm}/sbin/hdparm -S 24 /dev/%k"
|
|
|
|
'';
|
|
|
|
|
2022-01-11 21:31:25 +01:00
|
|
|
services.borgbackup.repos.clerie-backup = {
|
|
|
|
path = "/mnt/palladium/clerie-backup";
|
|
|
|
authorizedKeysAppendOnly = [
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFyk716RnbenPMkhLolyIkU8ywUSg8x7hjsXFFQoJx4I root@clerie-backup"
|
|
|
|
];
|
2021-05-07 16:26:24 +02:00
|
|
|
};
|
|
|
|
|
2021-04-30 23:54:43 +02:00
|
|
|
clerie.monitoring = {
|
|
|
|
enable = true;
|
|
|
|
id = "206";
|
|
|
|
pubkey = "fHOYNZ5I3E2JPrd9dUrNBmu75weX4KbDih5q+GCk8Xk=";
|
|
|
|
};
|
|
|
|
|
2021-04-30 23:36:48 +02:00
|
|
|
system.stateVersion = "21.03";
|
|
|
|
|
|
|
|
}
|