all repos — nixfiles @ 69578be6c274f06d17b2204e76ab97fefe365991

System and user configuration, managed by nix and home-manager

Use `rb` alias to rebuild the system on nix-darwin/nixos
Alan Pearce alan@alanpearce.eu
Mon, 01 May 2023 14:17:24 +0200
commit

69578be6c274f06d17b2204e76ab97fefe365991

parent

92300d2ac98dff3acea6d0b6c655c65f9917ffa3

2 files changed, 7 insertions(+), 14 deletions(-)

jump to
M user/settings/darwin.nixuser/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.nixuser/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";
     };
   };
 }