Merge pull request #42 from serokell/notgne2/fix-systemd-boot-entry

Remove default loader entry on NixOS activation
This commit is contained in:
notgne2 2021-01-10 23:45:31 -07:00 committed by GitHub
commit bcdf7b8966
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,7 +80,14 @@
];
};
nixos = base: custom base.config.system.build.toplevel "$PROFILE/bin/switch-to-configuration switch";
nixos = base: custom base.config.system.build.toplevel ''
$PROFILE/bin/switch-to-configuration switch
# https://github.com/serokell/deploy-rs/issues/31
${with base.config.boot.loader;
pkgs.lib.optionalString systemd-boot.enable
"sed -i '/^default /d' ${efi.efiSysMountPoint}/loader/loader.conf"}
'';
noop = base: custom base ":";
};