NixOS + home-manager configs, mirrored from GitLab SaaS. gitlab.com/andreijiroh-dev/nixops-config
nix-flake nixos home-manager nixpkgs nix-flakes
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore(global): update configs across the board

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.dev>

+40 -7
+5 -4
misc/bash/lib/ssh-agent-loader
··· 1 1 #!/usr/bin/env bash 2 2 # shellcheck disable=SC2034 3 3 # SPDX-License-Identifier: MPL-2.0 4 - #set -eo pipefail 5 4 6 5 if [[ $DEBUG != "" ]]; then 7 6 set -x ··· 19 18 if [[ $1 == "debug" ]]; then 20 19 [[ $DEBUG != "" ]] && echo "[ssh-agent-loader] debug: $2" 21 20 elif [[ $1 == "warn" ]]; then 22 - [[ $SSH_AGENT_LOADER_SLIENT != "1" ]] && echo "$LOGOPS_PREFIX warning: $2" 21 + echo "$LOGOPS_PREFIX warning: $2" 22 + elif [[ $1 == "error" ]]; then 23 + echo "$LOGOPS_PREFIX error: $2" 23 24 else 24 25 [[ $SSH_AGENT_LOADER_SLIENT != "1" ]] && echo "$LOGOPS_PREFIX $2" 25 26 fi ··· 45 46 try_keychain_ssh_agent() { 46 47 if [[ $FF_KEYCHAIN == "1" ]]; then 47 48 logOps info "attempting to use keychain for SSH agents" keychain 48 - eval "$(keychain --eval --agents ssh,gpg)" 49 + [[ "$SSH_AGENT_LOADER_SLIENT" == "" ]] && eval "$(keychain --eval --agents ssh,gpg)" || eval "$(keychain --eval --agents ssh,gpg --quiet)" 49 50 else 50 51 logOps warn "keychain is not in PATH yet" keychain 51 52 return 1 ··· 80 81 ssh-agent-loader() { 81 82 if [[ $1 == "" || $1 == "auto" ]]; then 82 83 if [[ $SSH_CONNECTION != "" ]] && [[ $VSCODE_IPC_HOOK_CLI != "" ]]; then 83 - echo info "automatic detection is disabled while you're in a VS Code Remote SSH session" 84 + logOps info "automatic detection is disabled while you're in a VS Code Remote SSH session" 84 85 return 85 86 fi 86 87
+7
misc/starship.toml
··· 1 + # Generally generated by NixOS while building my system config for stellapent-cier 2 + # alongside some customizations. 3 + "$schema" = 'https://starship.rs/config-schema.json' 4 + scan_timeout = 50 5 + command_timeout = 3500 6 + 7 + ## GENERATED BY NIXOS STARTS BELOW THIS LINE ## 1 8 [aws] 2 9 symbol = " " 3 10 format = "\\[[$symbol($profile)(\\($region\\))(\\[$duration\\])]($style)\\]"
+3
shared/home-manager/packages.nix
··· 75 75 openssl 76 76 unrar-wrapper 77 77 storj-uplink 78 + 79 + # shell utils 78 80 starship 79 81 oh-my-posh 82 + blesh 80 83 ]; 81 84 82 85 programs.bashmount = {
+16 -3
shared/home-manager/shell.nix
··· 77 77 bashrcExtra = '' 78 78 # detect if we are inside VS Code 79 79 source ${../../misc/bash/lib/detect-vscode-for-git} 80 + 81 + # HACK: https://github.com/akinomyoga/ble.sh/wiki/Manual-A1-Installation#user-content-nixpkgs 82 + export BLESH_PATH=$(blesh-share) 83 + [[ $- == *i* ]] && source "$BLESH_PATH/ble.sh" --attach=none 80 84 ''; 81 85 initExtra = '' 82 86 # hackaround for GPG on CLI mode ··· 105 109 fi 106 110 107 111 export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' 112 + 113 + [[ ! ''${BLE_VERSION-} ]] || ble-attach 108 114 ''; 109 115 #enableLsColors = true; 110 116 }; ··· 113 119 enable = true; 114 120 }; 115 121 116 - programs.starship = { 117 - enable = true; 118 - settings = lib.importTOML ../../misc/starship.toml; 122 + programs = { 123 + starship = { 124 + enable = true; 125 + settings = lib.importTOML ../../misc/starship.toml; 126 + }; 127 + direnv = { 128 + enable = true; 129 + enableBashIntegration = true; 130 + enableZshIntegration = true; 131 + }; 119 132 }; 120 133 }
+9
shared/shells/bash.nix
··· 15 15 "nerd-font-symbols" 16 16 "bracketed-segments" 17 17 ]; 18 + settings = { 19 + scan_timeout = 50; 20 + command_timeout = 3500; 21 + }; 18 22 }; 19 23 }; 24 + 25 + # additional packages for use in bash shell (e.g. ble.sh) 26 + environment.systemPackages = with pkgs; [ 27 + blesh 28 + ]; 20 29 }