diff options
author | Kjetil Orbekk <kj@orbekk.com> | 2020-10-31 12:55:47 -0400 |
---|---|---|
committer | Kjetil Orbekk <kj@orbekk.com> | 2020-10-31 12:56:19 -0400 |
commit | 87d03e02c911667aad3463d30521e938e805207c (patch) | |
tree | 37aa594279dfbbf2e14f94f7766c1173caae3135 | |
parent | e62f947ab16072bacdbd3ff0d2cd3b56b7e0a044 (diff) |
pincer changes
-rw-r--r-- | config/thinkpad.nix | 7 | ||||
-rw-r--r-- | machines/x1-pincer.nix | 8 |
2 files changed, 10 insertions, 5 deletions
diff --git a/config/thinkpad.nix b/config/thinkpad.nix index 36320b8..5bd1707 100644 --- a/config/thinkpad.nix +++ b/config/thinkpad.nix @@ -3,10 +3,9 @@ services = { tlp = { enable = true; - extraConfig = '' - # Needed for either SSD or btrfs. - SATA_LINKPWR_ON_BAT=max_performance - ''; + settings = { + "SATA_LINKPWR_ON_BAT" = "max_performance"; + }; }; xserver.xkbModel = "thinkpad60"; }; diff --git a/machines/x1-pincer.nix b/machines/x1-pincer.nix index eb037a9..d5c3eed 100644 --- a/machines/x1-pincer.nix +++ b/machines/x1-pincer.nix @@ -1,6 +1,9 @@ { config, lib, pkgs, ... }: +let ports = { + minecraft = 25565; +}; in { - networking.firewall.allowedTCPPorts = [ ]; # socks proxy + networking.firewall.allowedTCPPorts = [ ports.minecraft ]; # socks proxy imports = [ ../config/desktop.nix ../config/laptop.nix @@ -12,6 +15,9 @@ networking = { hostName = "pincer"; + extraHosts = '' + 0.0.0.0 minecraft.net + ''; }; # services.displayManager.slim.enable = lib.mkForce false; |