From 30ab38b1c60498026904d2719e4fc8b9569293f2 Mon Sep 17 00:00:00 2001 From: iFargle Date: Tue, 13 Feb 2024 08:24:37 +0900 Subject: [PATCH] rework bash functions --- home-manager/common/software/cli/bash.nix | 17 +++-------------- home-manager/users/albert/default.nix | 2 +- 2 files changed, 4 insertions(+), 15 deletions(-) diff --git a/home-manager/common/software/cli/bash.nix b/home-manager/common/software/cli/bash.nix index 7783c795..174aa0df 100644 --- a/home-manager/common/software/cli/bash.nix +++ b/home-manager/common/software/cli/bash.nix @@ -41,7 +41,7 @@ enableCompletion = true; initExtra = '' GPG_TTY=$(tty) - ssh-add + ssh-add > /dev/null &> /dev/null ''; sessionVariables = { # Set the GTK Theme @@ -52,9 +52,11 @@ }; bashrcExtra = '' restart-docker() { + pushd /Storage/Data/docker-compose/sysctl.io docker stop $1 docker rm $1 docker-compose up -d $1 + popd } # Build ISOs/SD Card Images nixos-build-all-images-verbose() { @@ -149,19 +151,6 @@ sudo nix-env -u --always sudo nix-collect-garbage -d } - - # Update SOPS Secrets - install-secrets() { - pushd /etc/nixos/git - nix develop -c update-repo - popd - } - update-repo() { - for i in $(ls secrets); do - echo "Updateing secrets/$i" - sops updatekeys secrets/$i -y - done - } ''; shellAliases = { prime-select = "nvidia-offload"; diff --git a/home-manager/users/albert/default.nix b/home-manager/users/albert/default.nix index 9dc6f7dd..56000418 100644 --- a/home-manager/users/albert/default.nix +++ b/home-manager/users/albert/default.nix @@ -3,7 +3,7 @@ userName = "albert"; userEmail = "albert@sysctl.io"; extraConfig = { - core.askPass = false; + # core.askPass = false; credential.helper = "cache --timeout=25920000"; user.signingkey = "64F6C4EB46C4543A"; commit.gpgsign = "true";