nixos-config/machines/AMD-Workstation/default.nix

56 lines
1.3 KiB
Nix
Raw Normal View History

2021-03-18 14:03:09 +04:00
{ config, inputs, ... }: {
2021-01-22 21:44:23 +04:00
imports = [
2021-01-22 00:19:07 +04:00
./hardware-configuration.nix
2021-06-24 12:41:17 +04:00
inputs.self.nixosRoles.desktop
inputs.self.nixosProfiles.print-scan
inputs.self.nixosProfiles.aws
2021-01-22 00:19:07 +04:00
];
2021-01-21 22:13:53 +04:00
deviceSpecific.devInfo = {
cpu = {
vendor = "amd";
clock = 4200;
cores = 8;
};
drive = {
type = "ssd";
speed = 6000;
size = 250;
};
bigScreen = true;
ram = 32;
};
2021-02-01 20:54:45 +04:00
deviceSpecific.isHost = true;
2021-01-21 22:13:53 +04:00
services.apcupsd.enable = true;
2021-01-26 23:07:06 +04:00
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
2021-03-18 14:03:09 +04:00
2021-03-27 13:32:40 +04:00
secrets.wireguard-wg0 = { };
2021-03-18 14:03:09 +04:00
environment.sessionVariables.WINEPREFIX = "/home/balsoft/.local/share/wineprefixes/default";
2021-06-08 20:52:32 +04:00
persist = {
enable = true;
cache.clean.enable = false; # Scary...
state.directories = [ "/home/balsoft/.local/share/Steam" ];
derivative.directories = [ "/home/balsoft/.local/share/wineprefixes/default" ];
2021-06-08 20:52:32 +04:00
};
2021-03-27 13:32:40 +04:00
services.ezwg = {
enable = true;
proxy = true;
lanSize = 32;
2021-09-13 21:03:07 +04:00
serverIP = "95.217.152.163";
2021-03-27 13:32:40 +04:00
serverPort = 35944;
serverKey = "sgLUARawWJejANs2CwuCptwJO55c4jkmnP0L14FNCyw=";
privateKeyFile = config.secrets.wireguard-wg0.decrypted;
vlanIP = "172.20.0.52";
2021-03-18 14:03:09 +04:00
};
# restart when the service fails to resolve DNS
systemd.services.wireguard-serokell.serviceConfig = {
Restart = "on-failure";
RestartSec = "30s";
};
2021-01-21 22:13:53 +04:00
}