From e2e912bf1920733afe3002675ae0f7b3acd595ce Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Mon, 27 Feb 2023 17:44:44 +0100 Subject: [PATCH] Remove sudo from sliases in root --- modules/user/root/home/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/user/root/home/default.nix b/modules/user/root/home/default.nix index 13fae6d..be5b947 100644 --- a/modules/user/root/home/default.nix +++ b/modules/user/root/home/default.nix @@ -60,8 +60,8 @@ in enable = true; historyFile = "${hcfg.xdg.stateHome}/bash/history"; shellAliases = { - gc = "sudo nix store gc"; - rb = "sudo git -C /etc/nixos pull && sudo nix flake update /etc/nixos/ && sudo nixos-rebuild switch && sudo git -C /etc/nixos add . && sudo git -C /etc/nixos commit -m 'Updated flake.lock' && sudo git -C /etc/nixos push"; + gc = "nix store gc"; + rb = "git -C /etc/nixos pull && nix flake update /etc/nixos/ && nixos-rebuild switch && git -C /etc/nixos add . && git -C /etc/nixos commit -m 'Updated flake.lock' && git -C /etc/nixos push"; }; }; zsh.shellAliases = hcfg.programs.bash.shellAliases;