2023-08-06 22:08:38 +02:00
|
|
|
{ ... }: {
|
2023-08-06 00:45:08 +02:00
|
|
|
imports = [
|
2023-08-13 19:28:37 +02:00
|
|
|
../../overlays
|
2023-08-06 00:45:08 +02:00
|
|
|
../../modules/base
|
2023-08-26 15:15:30 +02:00
|
|
|
../../modules/server
|
2023-08-06 00:45:08 +02:00
|
|
|
../../modules/tor
|
2023-10-22 16:07:08 +02:00
|
|
|
./hardware.nix
|
|
|
|
./tor.nix
|
2023-08-06 00:45:08 +02:00
|
|
|
];
|
|
|
|
|
2023-08-11 19:03:18 +02:00
|
|
|
networking.hostName = "tor";
|
|
|
|
systemd.network.networks = {
|
|
|
|
"10-lan" = {
|
2023-08-11 19:44:39 +02:00
|
|
|
# IPv4 settings are from `sudo dhcpcd --test`.
|
|
|
|
# IPv6 settings are from https://www.ssdvps.dk/knowledgebase/18/IPv6-Gateway.html.
|
2023-08-11 19:03:18 +02:00
|
|
|
name = "ens3";
|
|
|
|
address = [
|
|
|
|
"91.210.59.57/25"
|
|
|
|
"2a0d:3e83:1:b284::1/64"
|
|
|
|
];
|
|
|
|
routes = [
|
|
|
|
{ routeConfig = { Gateway = "91.210.59.1"; }; }
|
|
|
|
{ routeConfig = { Gateway = "2a0d:3e83:1::1"; GatewayOnLink = true; }; }
|
|
|
|
];
|
2023-08-06 00:45:08 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
boot = {
|
|
|
|
loader = {
|
|
|
|
grub = {
|
|
|
|
enable = true;
|
|
|
|
device = "/dev/vda";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
initrd.luks.devices.crypted.device = "/dev/disk/by-label/crypted";
|
|
|
|
};
|
|
|
|
|
|
|
|
# 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?
|
|
|
|
|
|
|
|
# This value determines the Home Manager release that your
|
|
|
|
# configuration is compatible with. This helps avoid breakage
|
|
|
|
# when a new Home Manager release introduces backwards
|
|
|
|
# incompatible changes.
|
|
|
|
# You can update Home Manager without changing this value. See
|
|
|
|
# the Home Manager release notes for a list of state version
|
|
|
|
# changes in each release.
|
|
|
|
home-manager.users.caspervk.home.stateVersion = "23.05"; # Did you read the comment?
|
|
|
|
}
|