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(shell): improve shell configs and stuff

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

+10 -6
-3
flake.nix
··· 110 110 home = { 111 111 username = "gildedguy"; 112 112 homeDirectory = "/home/gildedguy"; 113 - useGlobalPkgs = true; 114 113 }; 115 114 } 116 115 ]; ··· 127 126 { 128 127 home.username = "ajhalili2006"; 129 128 home.homeDirectory = "/home/ajhalili2006"; 130 - home.useUserPackages = true; 131 - home.useGlobalPkgs = true; 132 129 } 133 130 ]; 134 131 };
+1 -1
misc/bash/lib/ssh-agent-loader
··· 50 50 echo "[ssh-agent-loader::1password] unlock the desktop app first or enable SSH agent from settings" 51 51 return 1 52 52 fi 53 - export SSH_AUTH_SOCK=$OP_SSH_AUTH_SOCK 53 + export SSH_AUTH_SOCK=$OP_SSH_AUTH_SOCK FF_USE_OP_CLI_PLUGINS=true 54 54 unset OP_SSH_AUTH_SOCK 55 55 } 56 56
+2 -1
shared/home-manager/packages.nix
··· 63 63 go 64 64 rustup 65 65 66 - # linters 66 + # linters and formatters 67 67 shellcheck 68 68 hadolint 69 + shfmt 69 70 70 71 ## language servers ## 71 72 # nix language server - https://github.com/oxalica/nil
+7 -1
shared/home-manager/shell.nix
··· 42 42 # source our ssh-agent-loader first 43 43 source ${../../misc/bash/lib/ssh-agent-loader} 44 44 45 + # hack around for 1Password CLI when 1Password desktop app is up 46 + if [[ $$FF_USE_OP_CLI_PLUGINS == "true" ]]; then 47 + test -f "$HOME/.config/op/plugins.sh" && source "$HOME/.config/op/plugins.sh" 48 + fi 49 + 45 50 # hook in direnv and friends 46 - eval $(direnv hook bash) 51 + eval "$(direnv hook bash)" 47 52 ''; 53 + #enableLsColors = true; 48 54 }; 49 55 50 56 programs.zsh = {