From a9a5c4bd1ef7a2db264dddd1dc51ac315ddbb606 Mon Sep 17 00:00:00 2001 From: notgne2 Date: Tue, 5 Jan 2021 16:44:00 -0700 Subject: Automatically filter out `default` line from loader.conf after NixOS activation --- flake.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 4513495..41035d6 100644 --- a/flake.nix +++ b/flake.nix @@ -80,7 +80,12 @@ ]; }; - 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 + sed -i '/^default /d' /boot/loader/loader.conf + ''; noop = base: custom base ":"; }; -- cgit v1.2.3