diff options
| author | Jakub Stachurski <j.stachurski@student.utwente.nl> | 2025-11-19 21:02:52 +0100 |
|---|---|---|
| committer | Jakub Stachurski <j.stachurski@student.utwente.nl> | 2025-11-19 21:02:52 +0100 |
| commit | 892de67a9f64d0b0cdb023d830a019d8feec0a57 (patch) | |
| tree | 0c5fd0c60ef93bb5cdc5f83c8cade0c5dddb4899 /modules/gpg.nix | |
| parent | f5b37610b3835ea26757ef36d554ec598d53100c (diff) | |
Nix fmt
Diffstat (limited to 'modules/gpg.nix')
| -rw-r--r-- | modules/gpg.nix | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/modules/gpg.nix b/modules/gpg.nix index e7b6984..0fa48e6 100644 --- a/modules/gpg.nix +++ b/modules/gpg.nix @@ -1,9 +1,16 @@ -{pkgs, config, lib, ... }: -let cfg = config.addons.gpg; in +{ + pkgs, + config, + lib, + ... +}: +let + cfg = config.addons.gpg; +in { options.addons.gpg = { - enable = lib.mkEnableOption "Allow gpg for all users"; - }; + enable = lib.mkEnableOption "Allow gpg for all users"; + }; config = lib.mkMerge ([ (lib.mkIf cfg.enable { @@ -11,8 +18,8 @@ let cfg = config.addons.gpg; in agent = { enable = true; }; - }; + }; }) ]); -} +} |
