mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
User settings restructured
This commit is contained in:
parent
fce12d274c
commit
2881653ec5
6 changed files with 51 additions and 52 deletions
|
|
@ -3,19 +3,13 @@
|
|||
with lib;
|
||||
let
|
||||
cfg = config.modules.gpg;
|
||||
isBryan = config.user.name == "bryan";
|
||||
|
||||
in
|
||||
{ options.modules.gpg = { enable = mkEnableOption "gpg"; };
|
||||
config = mkIf cfg.enable {
|
||||
programs.gpg = {
|
||||
enable = true;
|
||||
publicKeys = if isBryan then [
|
||||
{
|
||||
text = import ./config/pubKey.nix;
|
||||
trust = 5;
|
||||
}
|
||||
] else [];
|
||||
publicKeys = [ config.user.pgpKey ];
|
||||
};
|
||||
|
||||
services.gpg-agent = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue