This commit is contained in:
Henri Dohmen 2025-10-12 17:58:35 +02:00
parent 1ba3e80f27
commit fba6c64d00
Signed by: hd
GPG key ID: AB79213B044674AE
2 changed files with 3 additions and 29 deletions

View file

@ -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 .#$*

View file

@ -84,8 +84,9 @@
hd.desktop.enable = true;
networking.firewall = {
enable = true;
networking = {
useDHCP = lib.mkDefault true;
firewall.enable = true;
};
# ====== DON'T CHANGE ======