[TASK] Override hostname in VM

This commit is contained in:
Sebastian Fischer 2026-02-15 17:13:29 +01:00
parent a777bd1e89
commit fc6425d3f6

View File

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, lib, ... }:
let
spice-vdagent-desktop = pkgs.makeDesktopItem {
@ -27,6 +27,8 @@ in
services.gvfs.enable = true;
services.qemuGuest.enable = true;
networking.hostName = lib.mkForce "cesium-vm";
# Open ports in the firewall.
networking.firewall.allowedTCPPorts = [ 9843 22 ];
# Enable the OpenSSH daemon.