nixcfg/node/spoutnik.nix

29 lines
720 B
Nix
Raw Normal View History

2021-11-18 14:38:59 +00:00
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
networking.hostName = "spoutnik";
2021-11-18 15:06:11 +00:00
services.openssh.ports = [ 220 ];
2021-11-18 14:38:59 +00:00
networking.interfaces.enp0s25.useDHCP = false;
networking.interfaces.enp0s25.ipv4.addresses = [
{
address = "192.168.0.40";
prefixLength = 24;
}
2021-11-18 14:38:59 +00:00
];
networking.wireguard.interfaces.wg0 = {
ips = [ "10.42.0.2/16" ];
listenPort = 42136;
};
2021-11-18 14:38:59 +00:00
}