From 642568c64ccb5ed402626b37f9e44323360b4bc7 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Mon, 4 Nov 2024 10:20:41 -0600 Subject: [PATCH] Change to using nixos-rebuild --- home/modules/baseline/xonsh_footer.xsh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/home/modules/baseline/xonsh_footer.xsh b/home/modules/baseline/xonsh_footer.xsh index 08a1a34..5f7a507 100644 --- a/home/modules/baseline/xonsh_footer.xsh +++ b/home/modules/baseline/xonsh_footer.xsh @@ -62,8 +62,7 @@ def _rebuild(args): nom build f"/etc/nixos#nixosConfigurations.{hostname}.config.system.build.toplevel" if g`result`: nvd diff /run/current-system result - sudo result/bin/switch-to-configuration boot - sudo result/bin/switch-to-configuration switch + sudo nixos-rebuild switch popd aliases['rebuild'] = _rebuild