Skip to content

Commit 98f4636

Browse files
committed
networking: fix not setting hostname
1 parent 41b8775 commit 98f4636

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

modules/nixos/system/networking/default.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
config,
33
lib,
44
pkgs,
5+
hostname,
56

67
...
78
}:
@@ -127,6 +128,8 @@ in
127128
];
128129

129130
networking = {
131+
hostName = hostname;
132+
130133
hosts = {
131134
"127.0.0.1" = cfg.hosts."127.0.0.1" or [ ];
132135
} // cfg.hosts;

0 commit comments

Comments
 (0)