Change the hostname to "tlaternet"
Apparently nixos doesn't support "." in host names anymore.
This commit is contained in:
parent
fe3f72d581
commit
8fe36b187b
6
Makefile
6
Makefile
|
@ -1,11 +1,11 @@
|
||||||
result: etc/nixos/configuration.nix
|
result: etc/nixos/configuration.nix
|
||||||
nix-build '<nixpkgs/nixos>' -A vm -k -I nixos-config=$^
|
nix-build '<nixpkgs/nixos>' -A vm -k -I nixos-config=$^
|
||||||
|
|
||||||
tlater.net.qcow2:
|
tlaternet.qcow2:
|
||||||
nix-shell -p qemu --run 'qemu-img create -f qcow2 $@ 10G'
|
nix-shell -p qemu --run 'qemu-img create -f qcow2 $@ 10G'
|
||||||
|
|
||||||
run: result tlater.net.qcow2
|
run: result tlaternet.qcow2
|
||||||
QEMU_OPTS="-m 4096 -nographic" QEMU_NET_OPTS="hostfwd=tcp::2222-:2222,hostfwd=tcp::8000-:80" ./result/bin/run-tlater.net-vm
|
QEMU_OPTS="-m 4096 -nographic" QEMU_NET_OPTS="hostfwd=tcp::2222-:2222,hostfwd=tcp::8000-:80" ./result/bin/run-tlaternet-vm
|
||||||
|
|
||||||
format: $(wildcard etc/nixos/**/*.nix)
|
format: $(wildcard etc/nixos/**/*.nix)
|
||||||
nix-shell -p nixpkgs-fmt --run 'nixpkgs-fmt $^'
|
nix-shell -p nixpkgs-fmt --run 'nixpkgs-fmt $^'
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "tlater.net";
|
hostName = "tlaternet";
|
||||||
|
|
||||||
# useDHCP is deprecated
|
# useDHCP is deprecated
|
||||||
useDHCP = false;
|
useDHCP = false;
|
||||||
|
|
Loading…
Reference in a new issue