diff options
author | notgne2 | 2021-01-10 23:45:31 -0700 |
---|---|---|
committer | GitHub | 2021-01-10 23:45:31 -0700 |
commit | bcdf7b89663398a690348ca8b2883c2d18de42c4 (patch) | |
tree | 68eda894ef1c56355c47f6e0ea91516566d43f57 | |
parent | aa42daa8002f17c33a0a56abc110ca1bc14e8cc2 (diff) | |
parent | 4300218fc791f51c3fdd4677eae9dad1dabb3550 (diff) |
Merge pull request #42 from serokell/notgne2/fix-systemd-boot-entry
Remove default loader entry on NixOS activation
-rw-r--r-- | flake.nix | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 ":"; }; |