-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathhost-template.nix.placeholder
74 lines (63 loc) · 1.3 KB
/
host-template.nix.placeholder
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
inputs,
lib,
...
}:
let
in
{
imports = [
#
# ========== Hardware ==========
#
./hardware-configuration.nix
#inputs.hardware.nixosModules.common-cpu-amd
#inputs.hardware.nixosModules.common-cpu-intel
#inputs.hardware.nixosModules.common-gpu-nvidia
#inputs.hardware.nixosModules.common-gpu-intel
#inputs.hardware.nixosModules.common-pc-ssd
#
# ========== Disk Layout ==========
#
#inputs.disko.nixosModules.disko
#
# ========== Misc Inputs ==========
#
(map lib.custom.relativeToRoot [
#
# ========== Required Configs ==========
#
"hosts/common/core"
#
# ========== Non-Primary Users to Create ==========
#
#
# ========== Optional Configs ==========
#
])
];
#
# ========== Host Specification ==========
#
hostSpec = {
hostName = "foo";
useYubikey = lib.mkForce true;
scaling = lib.mkForce "1";
};
networking = {
networkmanager.enable = true;
enableIPv6 = false;
};
boot.loader = {
systemd-boot = {
enable = true;
};
efi.canTouchEfiVariables = true;
timeout = 3;
};
boot.initrd = {
systemd.enable = true;
};
# https://wiki.nixos.org/wiki/FAQ/When_do_I_update_stateVersion
system.stateVersion = "24.11";
}