basic pass config
This commit is contained in:
parent
646e68f1d2
commit
61a03c40d4
|
@ -8,7 +8,6 @@
|
|||
./starship.nix
|
||||
./direnv.nix
|
||||
./fish
|
||||
./tmux
|
||||
];
|
||||
|
||||
# Enable bash
|
||||
|
|
|
@ -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 {
|
||||
|
|
21
home/features/cli/pass.nix
Normal file
21
home/features/cli/pass.nix
Normal 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 ];
|
||||
}
|
|
@ -7,6 +7,7 @@
|
|||
./features/desktop/firefox
|
||||
./features/desktop/discord
|
||||
./features/cli/khal.nix
|
||||
./features/cli/pass.nix
|
||||
./features/neovim
|
||||
|
||||
./features/xorg/xmonad.nix
|
||||
|
|
|
@ -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" ];
|
||||
|
|
|
@ -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
18
pkgs/wofi-pass.nix
Normal 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
|
||||
'';
|
||||
}
|
Loading…
Reference in a new issue