We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e17a0f commit d44916dCopy full SHA for d44916d
nixos/modules/system/activation/switch-to-configuration.pl
@@ -59,7 +59,7 @@
59
# This is a NixOS installation if it has /etc/NIXOS or a proper
60
# /etc/os-release.
61
die "This is not a NixOS installation!\n" unless
62
- -f "/etc/NIXOS" || (read_file("/etc/os-release", err_mode => 'quiet') // "") =~ /ID=nixos/s;
+ -f "/etc/NIXOS" || (read_file("/etc/os-release", err_mode => 'quiet') // "") =~ /ID="?nixos"?/s;
63
64
openlog("nixos", "", LOG_USER);
65
0 commit comments