Add GnuPG module
This commit is contained in:
@@ -7,6 +7,13 @@
|
||||
|
||||
sydnix = {
|
||||
filesystemType = "btrfs";
|
||||
|
||||
gpg.enable = true;
|
||||
|
||||
users.users = [
|
||||
"crumb"
|
||||
];
|
||||
|
||||
impermanence = {
|
||||
enable = false;
|
||||
directories = [
|
||||
@@ -22,9 +29,7 @@
|
||||
device = "placeholderrrr";
|
||||
archiveLimit = 3;
|
||||
};
|
||||
users.users = [
|
||||
"crumb"
|
||||
];
|
||||
|
||||
# niri.enable = true;
|
||||
};
|
||||
|
||||
|
||||
20
modules/nixos/gpg.nix
Normal file
20
modules/nixos/gpg.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
{
|
||||
options = {
|
||||
sydnix.gpg = {
|
||||
enable = mkEnableOption "GnuPG";
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf config.sydnix.gpg.enable {
|
||||
programs.gnupg.agent = {
|
||||
enable = true;
|
||||
enableSSHSupport = true;
|
||||
};
|
||||
|
||||
environment.systemPackages = [ pkgs.gnupg ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user