diff --git a/home-manager/common/software/cli/bash.nix b/home-manager/common/software/cli/bash.nix index d606f8eb..a792b0d4 100644 --- a/home-manager/common/software/cli/bash.nix +++ b/home-manager/common/software/cli/bash.nix @@ -47,9 +47,9 @@ nix-shell -p sops --run "sops updatekeys $1" } nix-clean-all() { - nix-channel --update - nix-env -u --always - nix-collect-garbage -d + sudo nix-channel --update + sudo nix-env -u --always + sudo nix-collect-garbage -d } ''; shellAliases = { @@ -90,14 +90,14 @@ # nixos-rebuild ns = "nix-shell -p"; - nr = "nixos-rebuild"; - nrs = "nixos-rebuild --upgrade switch"; - nrt = "nixos-rebuild test"; - nrb = "nixos-rebuild build"; + nr = "sudo nixos-rebuild"; + nrs = "sudo nixos-rebuild --upgrade switch"; + nrt = "sudo nixos-rebuild test"; + nrb = "sudo nixos-rebuild build"; # Rebuild everything rebuild-home = "home-manager switch -b backup --flake /etc/nixos/git"; - rebuild-host = "nixos-rebuild switch --flake /etc/nixos/git"; + rebuild-host = "sudo nixos-rebuild switch --flake /etc/nixos/git"; rebuild-all = "rebuild-home && rebuild-host"; }; }; diff --git a/home-manager/users/root/default.nix b/home-manager/users/root/default.nix deleted file mode 100644 index 9c10b725..00000000 --- a/home-manager/users/root/default.nix +++ /dev/null @@ -1,12 +0,0 @@ -{ config, pkgs, ... }: { - programs.git = { - userName = "albert"; - userEmail = "albert@sysctl.io"; - extraConfig = { - core.askPass = "false"; - credential.helper = "cache --timeout=25920000"; - user.signingkey = "64F6C4EB46C4543A"; - commit.gpgsign = "true"; - }; - }; -} \ No newline at end of file