nixos-container: avoid top-level with lib in pkgs/tools/virtualization/nixos-container/nixos-container.pl

This commit is contained in:
Philip Taron 2024-04-29 12:57:20 -07:00
parent aa30bcc07b
commit 942ac9abd9
No known key found for this signature in database

View file

@ -171,10 +171,8 @@ sub writeNixOSConfig {
my $nixosConfig = <<EOF;
{ config, lib, pkgs, ... }:
with lib;
{ boot.isContainer = true;
networking.hostName = mkDefault "$containerName";
networking.hostName = lib.mkDefault "$containerName";
networking.useDHCP = false;
$localExtraConfig
}