mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-06-07 13:29:22 +02:00
enable gpg
This commit is contained in:
parent
b15b60bc07
commit
c5564d5a95
3 changed files with 28 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
|||
./direnv
|
||||
./firefox
|
||||
./git
|
||||
./gpg
|
||||
./nushell
|
||||
];
|
||||
}
|
||||
|
|
19
home-modules/gpg/default.nix
Normal file
19
home-modules/gpg/default.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
let cfg = config.jopejoe1.gpg;
|
||||
in {
|
||||
options.jopejoe1.gpg = {
|
||||
enable = lib.mkEnableOption "Enable Nushell";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs = {
|
||||
gpg = {
|
||||
enable = true;
|
||||
homedir = "${config.xdg.dataHome}/gnupg";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue