blob: b8d56829d12dd6d9cedbde4a8cacc2bc0b30c8ba (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
{ pkgs, ... }:
{
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.tmp.useTmpfs = true;
time.timeZone = "America/New_York";
networking.hostName = "elmo";
networking.domain = "mou.fo";
networking.networkmanager.enable = true;
services.avahi = {
enable = true;
nssmdns = true;
publish = {
enable = true;
addresses = true;
};
};
# https://github.com/NixOS/nixpkgs/issues/54707#issuecomment-1132907191
systemd.services.nix-daemon = {
environment.TMPDIR = "/var/tmp";
};
# 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";
};
}
|