Skip to content

Commit 2a00ca5

Browse files
committed
nixos-modules/microvm/ssh-deploy: work around missing networking.hostName
NixOS/nixos-search#785 (comment)
1 parent d0ead9a commit 2a00ca5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nixos-modules/microvm/asserts.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{ config, lib, ... }:
22
let
3-
43
inherit (config.networking) hostName;
4+
55
in
66
lib.mkIf config.microvm.guest.enable {
77
assertions =

nixos-modules/microvm/ssh-deploy.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{ config, lib, pkgs, ... }:
22

33
let
4-
inherit (config.networking) hostName;
4+
hostName = config.networking.hostName or "$HOSTNAME";
55
inherit (config.system.build) toplevel;
66
inherit (config.microvm) declaredRunner;
77
inherit (config) nix;

0 commit comments

Comments
 (0)