From 21398bece441d9afaa8e74539d993c3e976ebce0 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 29 Apr 2024 20:10:36 +0200 Subject: use `nh` as a nixos-rebuild wrapper with nice output --- user/settings/fish.nix | 2 +- user/settings/nixos.nix | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'user/settings') diff --git a/user/settings/fish.nix b/user/settings/fish.nix index 7e144e05..0101178c 100644 --- a/user/settings/fish.nix +++ b/user/settings/fish.nix @@ -25,7 +25,7 @@ ]; # TODO: pre-generate nix-your-shell interactiveShellInit = '' - ${pkgs.nix-your-shell}/bin/nix-your-shell fish | source + ${pkgs.nix-your-shell}/bin/nix-your-shell --nom env fish | source bind \es __ghq_repository_search # don't bind ctrl-t, it does nice things on macOS/BSD set FZF_CTRL_T_COMMAND diff --git a/user/settings/nixos.nix b/user/settings/nixos.nix index bae37c56..d30d6a3d 100644 --- a/user/settings/nixos.nix +++ b/user/settings/nixos.nix @@ -5,9 +5,9 @@ ]; home.shellAliases = { - srb = "sudo nixos-rebuild"; - rbs = "sudo nixos-rebuild switch --fast"; - rbb = "sudo nixos-rebuild boot"; - rbr = "sudo nixos-rebuild switch --rollback"; + srb = "nh os"; + rbs = "nh os switch --fast"; + rbb = "nh os boot"; + rbr = "nh os switch --rollback"; }; } -- cgit 1.4.1