diff --git a/configs/gopass/default.nix b/configs/gopass/default.nix index 9343165..e98e0f8 100644 --- a/configs/gopass/default.nix +++ b/configs/gopass/default.nix @@ -1,7 +1,7 @@ { config, pkgs, ... }: { home.file.".config/gopass/config".text = - '' - [mounts] - path = ${config.home.homeDirectory}/.password-store - ''; + '' + [mounts] + path = ${config.home.homeDirectory}/.password-store + ''; } diff --git a/hosts/commons/pass.nix b/hosts/commons/pass.nix index d945a89..6d27c1f 100644 --- a/hosts/commons/pass.nix +++ b/hosts/commons/pass.nix @@ -1,28 +1,28 @@ { config, pkgs, ... }: { - home.activation = { - passwordStore = '' - PW_DIR=${config.home.homeDirectory}/.password-store + home.activation = { + passwordStore = '' + PW_DIR=${config.home.homeDirectory}/.password-store - if [ ! -d "$PW_DIR" ]; then - mkdir -p "$PW_DIR" - fi - cd $PW_DIR + if [ ! -d "$PW_DIR" ]; then + mkdir -p "$PW_DIR" + fi + cd $PW_DIR - # the following PATH addition is to make sure that binaries like `git`, `emacs`, `ssh` are available for use - export PATH="${config.home.path}/bin:/run/current-system/sw/bin:/etc/profiles/per-user/${config.home.username}/bin:$PATH" + # the following PATH addition is to make sure that binaries like `git`, `emacs`, `ssh` are available for use + export PATH="${config.home.path}/bin:/run/current-system/sw/bin:/etc/profiles/per-user/${config.home.username}/bin:$PATH" - git init - if git remote | grep -q origin; then - git remote set-url origin git@gitlab.com:rounakdatta/pass.git - else - git remote add origin git@gitlab.com:rounakdatta/pass.git - fi + git init + if git remote | grep -q origin; then + git remote set-url origin git@gitlab.com:rounakdatta/pass.git + else + git remote add origin git@gitlab.com:rounakdatta/pass.git + fi - git fetch origin - git pull origin master + git fetch origin + git pull origin master - gopass-jsonapi configure --browser chrome --global=false --path=${config.home.homeDirectory}/.config/gopass - gopass-jsonapi configure --browser firefox --global=false --path=${config.home.homeDirectory}/.config/gopass - ''; - }; + gopass-jsonapi configure --browser chrome --global=false --path=${config.home.homeDirectory}/.config/gopass + gopass-jsonapi configure --browser firefox --global=false --path=${config.home.homeDirectory}/.config/gopass + ''; + }; }