From 7e7cf1ce2fe2e5742db5ebea58cada7f16cc3d7d Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Wed, 21 May 2025 22:43:59 -0400 Subject: [PATCH] nixos-generate-config: Add a flake default to the conf file --- nixos/modules/installer/tools/nixos-generate-config.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/installer/tools/nixos-generate-config.pl b/nixos/modules/installer/tools/nixos-generate-config.pl index ae09839d071d..1038fadec37d 100644 --- a/nixos/modules/installer/tools/nixos-generate-config.pl +++ b/nixos/modules/installer/tools/nixos-generate-config.pl @@ -49,6 +49,7 @@ if (-e "/etc/nixos-generate-config.conf") { $rootDir = File::Spec->rel2abs($rootDir); # resolve absolute path } $kernel = $cfg->val("Defaults", "Kernel") // $kernel; + $flake = $cfg->val("Defaults", "Flake") // $flake; } for (my $n = 0; $n < scalar @ARGV; $n++) {