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;
};
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