2020-11-06 22:00:41 +00:00
|
|
|
{ config, pkgs, lib, ... }:
|
2020-08-15 03:27:08 +00:00
|
|
|
|
|
|
|
{
|
2020-08-17 21:37:22 +00:00
|
|
|
imports = [
|
|
|
|
./boot-config.nix
|
|
|
|
./hardware-configuration.nix
|
|
|
|
../../services/ssh.nix
|
2020-11-01 20:27:07 +00:00
|
|
|
../../sets/fpga.nix
|
2020-08-17 21:37:22 +00:00
|
|
|
../../private/starlight.nix
|
|
|
|
];
|
2020-08-15 03:27:08 +00:00
|
|
|
|
|
|
|
networking.hostName = "starlight";
|
|
|
|
|
2020-10-21 21:04:01 +00:00
|
|
|
services.udev.extraRules = ''
|
|
|
|
KERNEL=="eth*", ATTR{address}=="00:0f:53:16:15:9c", NAME="lan10g0"
|
|
|
|
KERNEL=="eth*", ATTR{address}=="00:0f:53:16:15:9d", NAME="lan10g1"
|
|
|
|
'';
|
|
|
|
|
2020-11-06 22:00:41 +00:00
|
|
|
networking.networkmanager.enable = lib.mkForce false;
|
|
|
|
networking.bridges.br0 = {
|
|
|
|
rstp = true;
|
|
|
|
interfaces = [ "lan10g0" "lan10g1" "enp4s0" ];
|
|
|
|
};
|
|
|
|
networking.interfaces.br0 = {
|
|
|
|
useDHCP = true;
|
|
|
|
ipv6.addresses = [{
|
|
|
|
address = "2001:470:8b04:6900:6969:1454:7749:e591";
|
|
|
|
prefixLength = 128;
|
|
|
|
}];
|
|
|
|
};
|
2020-11-06 22:10:01 +00:00
|
|
|
networking.dhcpcd.allowInterfaces = [ "br0" ];
|
2020-11-06 22:00:41 +00:00
|
|
|
|
2020-08-15 03:27:08 +00:00
|
|
|
hardware.cpu.amd.updateMicrocode = true;
|
|
|
|
services = {
|
|
|
|
tor = {
|
|
|
|
enable = true;
|
|
|
|
client.enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-11-06 22:00:41 +00:00
|
|
|
boot.binfmt.emulatedSystems = [ "aarch64-linux" "riscv64-linux" ];
|
2020-09-16 03:34:20 +00:00
|
|
|
|
2020-08-15 03:27:08 +00:00
|
|
|
environment.systemPackages = with pkgs; [
|
2020-10-21 21:04:01 +00:00
|
|
|
weechat
|
2020-08-15 03:27:08 +00:00
|
|
|
steam
|
|
|
|
|
|
|
|
gnome3.zenity
|
|
|
|
SDL2 SDL2_ttf SDL2_image
|
|
|
|
];
|
|
|
|
|
|
|
|
system.stateVersion = "19.09";
|
|
|
|
}
|