Use system-features from the Nix conf in the default machine file

Fix #936
This commit is contained in:
regnat
2021-04-28 11:43:04 +02:00
parent d58b3274f9
commit abff212d06
4 changed files with 42 additions and 1 deletions

View File

@ -48,6 +48,7 @@ sub test_init {
my $nixconf = "$ENV{'NIX_CONF_DIR'}/nix.conf";
open(my $fh, '>', $nixconf) or die "Could not open file '$nixconf' $!";
print $fh "sandbox = false\n";
print $fh "system-features = test-system-feature\n";
print $fh $opts{'nix_config'} || "";
close $fh;