From 83bc04e3bffe1a2afd4c99e28a10cfd770444e00 Mon Sep 17 00:00:00 2001 From: Haak Saxberg Date: Sat, 11 Dec 2021 11:20:04 -0800 Subject: [PATCH] open some ports for projects, turn off auto-upgrades --- nix/system/configuration.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/nix/system/configuration.nix b/nix/system/configuration.nix index e661513..a95f096 100644 --- a/nix/system/configuration.nix +++ b/nix/system/configuration.nix @@ -66,9 +66,11 @@ networking.firewall = { allowedTCPPorts = [ 631 # CUPs port for printing + 4000 # phoenix development port ]; allowedUDPPorts = [ 631 + 4000 ]; }; # Or disable the firewall altogether. @@ -80,6 +82,9 @@ # programs.mtr.enable = true; programs.gnupg.agent = { enable = true; enableSSHSupport = true; }; + # enable ADB for connecting to android phones + programs.adb.enable = true; + # List services that you want to enable: # Enable fingerprint reading @@ -140,6 +145,7 @@ extraGroups = [ "wheel" # Enable ‘sudo’ for the user. "networkmanager" # Allow the user to manage networks + "adbusers" # allow ADB use ]; }; @@ -154,7 +160,10 @@ # servers. You should change this only after NixOS release notes say you # should. system.stateVersion = "21.05"; # Did you read the comment? - system.autoUpgrade.enable = true; + + # On 2021-12-01 or thereabouts, a new generation was created that failed to + # boot; that's a little worrying! + system.autoUpgrade.enable = false; }