Change nixos shell aliases to call nixos-rebuild switch directly

This commit is contained in:
Evie Litherland-Smith 2024-05-25 07:04:59 +01:00
parent 45aa5879e0
commit 4718aad31c

View file

@ -65,9 +65,8 @@
expireDuplicatesFirst = true; expireDuplicatesFirst = true;
}; };
shellAliases = { shellAliases = {
nixos-upgrade = "systemctl start nixos-upgrade.service"; nixos-switch = "sudo nixos-rebuild switch --flake flake:my-nixos --show-trace";
nixos-status = "systemctl status nixos-upgrade.service"; home-manager-switch = "nix run flake:my-home-manager -- switch --flake flake:my-home-manager --show-trace";
home-manager-switch = "nix run flake:my-home-manager -- switch --flake flake:my-home-manager";
}; };
initExtra = '' initExtra = ''
## completion config and styling ## completion config and styling