nixos-configuration/hosts/magnesium/configuration.nix
2023-11-08 23:35:55 +00:00

57 lines
1.4 KiB
Nix

{ config, lib, pkgs, ... }:
{
imports = [
./hardware-configuration.nix
../../home-manager/users/jalr.nix
];
networking.hostName = "magnesium";
services.openssh.enable = true;
security.sudo.wheelNeedsPassword = false;
systemd.network = {
enable = true;
networks."10-wan" = {
matchConfig.Name = "enp1s0";
networkConfig.DHCP = "no";
address = [
"162.55.35.199/32"
"2a01:4f8:c012:21ba::/64"
];
routes = [
{
routeConfig.Destination = "172.31.1.1";
}
{
routeConfig = {
Gateway = "172.31.1.1";
GatewayOnLink = true;
};
}
{
routeConfig.Gateway = "fe80::1";
}
];
};
};
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
jalr = {
bootloader = "systemd-boot";
uefi.enable = true;
};
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. It's perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "23.05"; # Did you read the comment?
}