dhcp fw
This commit is contained in:
parent
1ba3e80f27
commit
fba6c64d00
2 changed files with 3 additions and 29 deletions
27
Makefile
27
Makefile
|
|
@ -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 .#$*
|
||||
|
|
@ -84,8 +84,9 @@
|
|||
|
||||
hd.desktop.enable = true;
|
||||
|
||||
networking.firewall = {
|
||||
enable = true;
|
||||
networking = {
|
||||
useDHCP = lib.mkDefault true;
|
||||
firewall.enable = true;
|
||||
};
|
||||
|
||||
# ====== DON'T CHANGE ======
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue