feat(servers): add thor.
This commit is contained in:
parent
5e714db69f
commit
5b3cb422e0
10 changed files with 147 additions and 25 deletions
41
hosts/thor/configuration.nix
Normal file
41
hosts/thor/configuration.nix
Normal file
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
modulesPath,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
(modulesPath + "/profiles/qemu-guest.nix")
|
||||
./disk-config.nix
|
||||
];
|
||||
|
||||
networking.hostName = "thor";
|
||||
|
||||
boot.loader.grub = {
|
||||
efiSupport = true;
|
||||
efiInstallAsRemovable = true;
|
||||
};
|
||||
|
||||
environment.systemPackages = map lib.lowPrio [
|
||||
pkgs.curl
|
||||
pkgs.neovim
|
||||
pkgs.gitMinimal
|
||||
];
|
||||
|
||||
networking.useNetworkd = true;
|
||||
systemd.network.enable = true;
|
||||
systemd.network.networks."10-wan" = {
|
||||
matchConfig.Name = "enp1s0"; # either ens3 or enp1s0 depending on system, check 'ip addr'
|
||||
networkConfig.DHCP = "ipv4";
|
||||
address = [
|
||||
# replace this address with the one assigned to your instance
|
||||
"2a01:4f9:c013:ce0d::1/64"
|
||||
];
|
||||
routes = [
|
||||
{Gateway = "fe80::1";}
|
||||
];
|
||||
};
|
||||
|
||||
system.stateVersion = "24.05";
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue