1
Fork 0

basic pass config

This commit is contained in:
Matei Adriel 2023-07-22 18:22:54 +03:00
parent 646e68f1d2
commit 61a03c40d4
No known key found for this signature in database
7 changed files with 46 additions and 3 deletions

View file

@ -8,7 +8,6 @@
./starship.nix
./direnv.nix
./fish
./tmux
];
# Enable bash

View file

@ -1,8 +1,7 @@
{ pkgs, config, ... }:
let
pinentry =
# if config.gtk.enable then {
if false then {
if config.gtk.enable then {
packages = [ pkgs.pinentry-gnome pkgs.gcr ];
name = "gnome3";
} else {

View file

@ -0,0 +1,21 @@
{ pkgs, config, lib, ... }:
let storePath = "${config.home.homeDirectory}/.password-store";
in
{
programs.password-store = {
enable = true;
settings.PASSWORD_STORE_DIR = storePath;
package = pkgs.pass;
};
services.pass-secret-service = {
inherit storePath;
enable = true;
};
home.packages = lib.mkIf config.programs.wofi.enable [
pkgs.wofi-pass
];
satellite.persistence.at.data.apps.pass.directories = [ storePath ];
}

View file

@ -7,6 +7,7 @@
./features/desktop/firefox
./features/desktop/discord
./features/cli/khal.nix
./features/cli/pass.nix
./features/neovim
./features/xorg/xmonad.nix

View file

@ -2,6 +2,10 @@
imports = [ ../../common/optional/syncthing.nix ];
services.syncthing.folders = {
"mythical-vault" = {
path = "/home/adrielus/.password-store";
devices = [ "enceladus" "lapetus" ];
};
"stellar-sanctum" = {
path = "/home/adrielus/Projects/stellar-sanctum/";
devices = [ "enceladus" "lapetus" ];

View file

@ -7,6 +7,7 @@ let plymouthThemes = pkgs.callPackage (import ./plymouth-themes.nix) { }; in
# example = pkgs.callPackage (import ./example.nix) {};
vimclip = pkgs.callPackage (import ./vimclip.nix) { };
sherlock = pkgs.callPackage (import ./sherlock.nix) { };
wofi-pass = pkgs.callPackage (import ./wofi-pass.nix) { };
plymouthThemeCutsAlt = plymouthThemes.cuts_alt;
}

18
pkgs/wofi-pass.nix Normal file
View file

@ -0,0 +1,18 @@
{ pkgs, ... }:
pkgs.stdenv.mkDerivation {
name = "wofi-pass";
version = "unstable-2023-05-12";
src = pkgs.fetchFromGitHub {
rev = "4468bbedf55ae1de47d178d39b60249d390b1d62";
owner = "schmidtandreas";
repo = "wofi-pass";
sha256 = "01sdz5iq9rqgd54d27qqq7f8b5ck64b0908lj9c4nkyw3vcplzar";
};
installPhase = ''
mkdir -p $out/bin
cp ./wofi-pass $out/bin/wofi-pass
chmod +x $out/bin/wofi-pass
'';
}