-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(nix): use pinentry-gnome for rbw
- Loading branch information
Showing
6 changed files
with
45 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,7 +47,6 @@ in { | |
environment.systemPackages = with pkgs; [ | ||
gnupg | ||
pinentry-curses | ||
pinentry-qt | ||
]; | ||
|
||
programs = { | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
options, | ||
config, | ||
pkgs, | ||
lib, | ||
inputs, | ||
... | ||
}: | ||
with lib; | ||
with lib.custom; let | ||
cfg = config.system.security.rbw; | ||
in { | ||
options.system.security.rbw = with types; { | ||
enable = mkBoolOpt false "Whether or not to enable rbw."; | ||
lockTimeout = mkOpt int 28800 "The amount of time to wait before continuing with shell init."; | ||
}; | ||
|
||
config = mkIf cfg.enable { | ||
environment.systemPackages = with pkgs; [ | ||
rbw | ||
pinentry-gnome | ||
]; | ||
|
||
home.programs = { | ||
rbw = { | ||
enable = true; | ||
settings = { | ||
lock_timeout = cfg.lockTimeout; | ||
pinentry = "gnome3"; | ||
email = "[email protected]"; | ||
}; | ||
}; | ||
}; | ||
}; | ||
} |