diff --git a/Makefile b/Makefile deleted file mode 100644 index ffaa508..0000000 --- a/Makefile +++ /dev/null @@ -1,27 +0,0 @@ -HOST ?= $(shell hostname) -HOSTS = solo c2 - -.PHONY: all switch $(addprefix, _swtich_,${HOSTS}) _swtich_ -.SUFFIXES: - -all: - @echo "Run \`make switch\` as root to rebuild and switch" - @true - -switch: _switch_${HOST} - -apply: - colmena apply - -update-hidden: - nix flake update nixos-config-hidden - -_switch_: - @echo "ERROR: couldn't find hostname" - @false -_switch_%: - @if [ "$(shell whoami)" != "root" ]; then \ - echo "ERROR: Run as root!"; \ - false; \ - fi - nixos-rebuild switch --flake .#$* diff --git a/host/fw/default.nix b/host/fw/default.nix index af3ccf8..7c69c84 100644 --- a/host/fw/default.nix +++ b/host/fw/default.nix @@ -84,8 +84,9 @@ hd.desktop.enable = true; - networking.firewall = { - enable = true; + networking = { + useDHCP = lib.mkDefault true; + firewall.enable = true; }; # ====== DON'T CHANGE ======