-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
48 lines (42 loc) · 999 Bytes
/
default.nix
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
{
modulesPath,
config,
lib,
pkgs,
...
}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
(modulesPath + "/profiles/qemu-guest.nix")
./disk-config.nix
./backup.nix
./web
];
boot.loader.grub.enable = true;
boot.loader.grub.efiSupport = true;
boot.loader.grub.efiInstallAsRemovable = true;
networking = {
hostName = "spore";
enableIPv6 = false; # TODO: Avoid IPs auto added to interface after boot
interfaces.eth0 = {
useDHCP = false;
ipv4.addresses = [
{
address = "74.48.202.251";
prefixLength = 24;
}
];
};
defaultGateway = {
address = "74.48.202.1";
interface = "eth0";
};
nameservers = ["8.8.8.8"];
};
networking.firewall.allowedTCPPorts = [80 443];
time.timeZone = "America/Los_Angeles";
i18n.defaultLocale = "en_US.UTF-8";
services.openssh.enable = true;
services.tailscale.enable = true;
system.stateVersion = "24.05";
}