Skip to content

Commit

Permalink
Nixpkgsfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
rounakdatta committed Feb 20, 2024
1 parent 237436c commit 5adbaaa
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
8 changes: 4 additions & 4 deletions configs/gopass/default.nix
Original file line number Diff line number Diff line change
@@ -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
'';
}
42 changes: 21 additions & 21 deletions hosts/commons/pass.nix
Original file line number Diff line number Diff line change
@@ -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 [email protected]:rounakdatta/pass.git
else
git remote add origin [email protected]:rounakdatta/pass.git
fi
git init
if git remote | grep -q origin; then
git remote set-url origin [email protected]:rounakdatta/pass.git
else
git remote add origin [email protected]: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
'';
};
}

0 comments on commit 5adbaaa

Please sign in to comment.