From bb73f7cacf4c0fd44b321b68e327dd9e1eee43b8 Mon Sep 17 00:00:00 2001 From: willemml Date: Sat, 18 Feb 2023 10:30:56 -0800 Subject: [PATCH] Add command to rebuild system without switching profiles. --- home/darwin.nix | 1 + home/programs.nix | 1 + 2 files changed, 2 insertions(+) diff --git a/home/darwin.nix b/home/darwin.nix index 17efefa..cae2283 100644 --- a/home/darwin.nix +++ b/home/darwin.nix @@ -39,6 +39,7 @@ in programs.zsh.shellAliases = mkIf stdenv.isDarwin ({ drs = "darwin-rebuild switch --flake ${config.home.homeDirectory}/.config/dotfiles.nix#"; + dbs = "darwin-rebuild build --flake ${config.home.homeDirectory}/.config/dotfiles.nix#"; f = "open \"$(${config.programs.fzf.package}/bin/fzf)\""; o = "open"; oa = "open -a"; diff --git a/home/programs.nix b/home/programs.nix index 0463a43..389b328 100644 --- a/home/programs.nix +++ b/home/programs.nix @@ -184,6 +184,7 @@ l = "ls -1"; np = "nix-shell -p"; nrs = lib.mkIf pkgs.stdenv.isLinux "sudo nixos-rebuild switch --flake ${config.home.homeDirectory}/.config/dotfiles.nix#"; + nbs = lib.mkIf pkgs.stdenv.isLinux "sudo nixos-rebuild build --flake ${config.home.homeDirectory}/.config/dotfiles.nix#"; org = "z ${config.home.sessionVariables.ORGDIR}"; ubc = "z ${config.home.sessionVariables.UBCDIR}"; };