Use `rb` alias to rebuild the system on nix-darwin/nixos
Alan Pearce alan@alanpearce.eu
Mon, 01 May 2023 14:17:24 +0200
2 files changed, 7 insertions(+), 14 deletions(-)
M user/settings/darwin.nix → user/settings/darwin.nix
@@ -130,8 +130,8 @@ }; }; programs.zsh.shellAliases = { - da = "darwin-rebuild"; - das = "darwin-rebuild switch"; + rb = "darwin-rebuild"; + rbs = "darwin-rebuild switch --flake $(ghq list -p nixfiles)"; drill = "command dig +noall +answer"; dig = "dig +noall +answer";
M user/settings/nixos.nix → user/settings/nixos.nix
@@ -1,7 +1,4 @@-{ config -, pkgs -, ... -}: { +{ ... }: { imports = [ ./nix.nix ./nixpkgs.nix @@ -9,14 +6,10 @@ ]; programs.zsh = { shellAliases = { - nor = "nixos-rebuild"; - snor = "sudo nixos-rebuild"; - nors = "nixos-rebuild switch"; - snors = "sudo nixos-rebuild switch"; - norb = "nixos-rebuild boot"; - snorb = "sudo nixos-rebuild boot"; - norr = "nixos-rebuild switch --rollback"; - snorr = "sudo nixos-rebuild switch --rollback"; + srb = "sudo nixos-rebuild"; + rbs = "sudo nixos-rebuild switch --fast"; + rbb = "sudo nixos-rebuild boot"; + rbr = "sudo nixos-rebuild switch --rollback"; }; }; }