Browse Source

pass import now fully works

rework-profiles
parent
commit
96bce2dc47
4 changed files with 17 additions and 5 deletions
  1. +0
    -1
      README.md
  2. +9
    -3
      common/graphical.nix
  3. +1
    -1
      common/headfull.nix
  4. +7
    -0
      dotfiles/clone-pass.sh

+ 0
- 1
README.md View File

@ -20,7 +20,6 @@ xdg:
* redirect IPv6 through tor
* weechat-matrix and vim-prosession !!!
* switch to pass in dotfiles
* auto import my pass passwords
* fix ibus daemon
* security hardening through sandboxing


+ 9
- 3
common/graphical.nix View File

@ -75,13 +75,19 @@
gpg --import-ownertrust ~/.config/gnupg/trust.txt
mkdir -p ~/.local/share/mail/ &> /dev/null
mkdir -p ~/.cache/mutt/ &> /dev/null
git clone git@code.govanify.com:govanify/passwords.git ~/.config/pass
echo "git pull --rebase" > ~/.config/pass/.git/hooks/post-commit
echo "git push" >> ~/.config/pass/.git/hooks/post-commit
fi
if [ ! -f ~/.config/pass ] && [[ $(tty) = /dev/tty1 ]]; then
# we try to clone user passwords, network might not be started or
# unreliable yet so we just try to clone until it works
~/.cache/clone-pass.sh &
fi
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
exec sway
fi
'';
home-manager.users.govanify = {
home.file.".cache/clone-pass.sh".source = ./../dotfiles/clone-pass.sh;
};
}

+ 1
- 1
common/headfull.nix View File

@ -11,7 +11,7 @@
environment.systemPackages = with pkgs; [
weechat cmus # dev
cargo python clang meson ninja
asciinema
asciinema gnumake ranger file
texlive.combined.scheme-medium
pass pinentry-curses
];


+ 7
- 0
dotfiles/clone-pass.sh View File

@ -0,0 +1,7 @@
while [ ! -d ~/.config/pass ]
do
git clone git@code.govanify.com:govanify/passwords.git ~/.config/pass
sleep 5
done
echo "git pull --rebase" > ~/.config/pass/.git/hooks/post-commit
echo "git push" >> ~/.config/pass/.git/hooks/post-commit

Loading…
Cancel
Save