-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
51 lines (46 loc) · 1.04 KB
/
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
49
50
51
{
config,
inputs,
outputs,
pkgs,
lib,
secrets,
...
}:
{
imports = [
inputs.home-manager.nixosModules.home-manager
./hardware.nix
../common/server.nix
../common/optional/k3s-agent.nix
../common/optional/reboot-required.nix
];
boot.kernelPackages = pkgs.linuxPackages_latest;
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking = {
hostName = "nk3s-amd64-d";
domain = secrets.hosts.nk3s-amd64-d.domain;
useDHCP = lib.mkDefault true;
interfaces = {
enp2s0.ipv4.addresses = [
{
address = secrets.hosts.nk3s-amd64-d.address;
prefixLength = 24;
}
];
};
defaultGateway = secrets.hosts.nk3s-amd64-d.defaultGateway;
nameservers = secrets.hosts.nk3s-amd64-d.nameservers;
};
home-manager = {
extraSpecialArgs = {
inherit inputs outputs;
};
users = {
w4cbe = import ../../home-manager/server;
};
};
system.stateVersion = "24.11";
}