diff options
-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; |