diff options
author | Alan Pearce | 2023-05-01 14:17:24 +0200 |
---|---|---|
committer | Alan Pearce | 2023-05-05 21:08:16 +0200 |
commit | 69578be6c274f06d17b2204e76ab97fefe365991 (patch) | |
tree | e24fd661d54bb2a571d73aacd211844e8a73e2bf /user/settings | |
parent | 92300d2ac98dff3acea6d0b6c655c65f9917ffa3 (diff) | |
download | nixfiles-69578be6c274f06d17b2204e76ab97fefe365991.tar.lz nixfiles-69578be6c274f06d17b2204e76ab97fefe365991.tar.zst nixfiles-69578be6c274f06d17b2204e76ab97fefe365991.zip |
Use `rb` alias to rebuild the system on nix-darwin/nixos
Diffstat (limited to 'user/settings')
-rw-r--r-- | user/settings/darwin.nix | 4 | ||||
-rw-r--r-- | user/settings/nixos.nix | 17 |
2 files changed, 7 insertions, 14 deletions
diff --git a/user/settings/darwin.nix b/user/settings/darwin.nix index 1086452c..c3a89a17 100644 --- a/user/settings/darwin.nix +++ b/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"; diff --git a/user/settings/nixos.nix b/user/settings/nixos.nix index 62f18f96..fc8362b9 100644 --- a/user/settings/nixos.nix +++ b/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"; }; }; } |