From 4718aad31cca40491253bbd2e662ad9bef0d3935 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Sat, 25 May 2024 07:04:59 +0100 Subject: [PATCH] Change nixos shell aliases to call nixos-rebuild switch directly --- programs/shell/default.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/programs/shell/default.nix b/programs/shell/default.nix index 032e694..70cddd7 100644 --- a/programs/shell/default.nix +++ b/programs/shell/default.nix @@ -65,9 +65,8 @@ expireDuplicatesFirst = true; }; shellAliases = { - nixos-upgrade = "systemctl start nixos-upgrade.service"; - nixos-status = "systemctl status nixos-upgrade.service"; - home-manager-switch = "nix run flake:my-home-manager -- switch --flake flake:my-home-manager"; + nixos-switch = "sudo nixos-rebuild switch --flake flake:my-nixos --show-trace"; + home-manager-switch = "nix run flake:my-home-manager -- switch --flake flake:my-home-manager --show-trace"; }; initExtra = '' ## completion config and styling