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 ./starship.nix
./direnv.nix ./direnv.nix
./fish ./fish
./tmux
]; ];
# Enable bash # Enable bash

View file

@ -1,8 +1,7 @@
{ pkgs, config, ... }: { pkgs, config, ... }:
let let
pinentry = pinentry =
# if config.gtk.enable then { if config.gtk.enable then {
if false then {
packages = [ pkgs.pinentry-gnome pkgs.gcr ]; packages = [ pkgs.pinentry-gnome pkgs.gcr ];
name = "gnome3"; name = "gnome3";
} else { } 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/firefox
./features/desktop/discord ./features/desktop/discord
./features/cli/khal.nix ./features/cli/khal.nix
./features/cli/pass.nix
./features/neovim ./features/neovim
./features/xorg/xmonad.nix ./features/xorg/xmonad.nix

View file

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

View file

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