blob: 311338ff480655f249ab508526b1d8afd330fbfd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
{ pkgs, ... }:
{
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "elmo";
networking.domain = "mou.fo";
networking.networkmanager.enable = true;
time.timeZone = "America/New_York";
# https://nixos.wiki/wiki/Hardware/Apple#Auto_Restart
systemd.services.enable-autorestart = {
description = "Boot after power failure (server mode)";
wantedBy = [ "default.target" ];
serviceConfig = {
Type = "oneshot";
};
# https://superuser.com/a/1051137
script = "${pkgs.pciutils}/bin/setpci -s 00:1f.0 0xa4.b=0";
};
}
|