elendel: Initialize new host
This commit is contained in:
parent
4dd8568fd2
commit
1caf599f73
73 changed files with 334 additions and 175 deletions
48
machines/elendel/default.nix
Normal file
48
machines/elendel/default.nix
Normal file
|
@ -0,0 +1,48 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [ ./hardware.nix ];
|
||||
|
||||
time.timeZone = "Europe/Brussels";
|
||||
|
||||
networking = {
|
||||
hostId = "338495bc";
|
||||
useDHCP = false;
|
||||
};
|
||||
|
||||
systemd.network = {
|
||||
enable = true;
|
||||
networks."enp7s0" = {
|
||||
enable = true;
|
||||
matchConfig = { Name = "enp7s0"; };
|
||||
address = [
|
||||
"37.27.113.55/26"
|
||||
"2a01:4f9:3070:2382::/64"
|
||||
];
|
||||
gateway = [ "37.27.113.1" ];
|
||||
routes = [
|
||||
{
|
||||
Gateway = "fe80::1";
|
||||
GatewayOnLink = true;
|
||||
}
|
||||
];
|
||||
dns = [
|
||||
"1.1.1.1"
|
||||
"1.0.0.1"
|
||||
"2606:4700:4700::1111"
|
||||
"2606:4700:4700::1001"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
chvp = {
|
||||
stateVersion = "24.11";
|
||||
base = {
|
||||
nix.enableDirenv = true;
|
||||
zfs = {
|
||||
enable = true;
|
||||
rootDataset = "zroot/local/root";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue