Add GnuPG module
This commit is contained in:
@@ -7,6 +7,13 @@
|
|||||||
|
|
||||||
sydnix = {
|
sydnix = {
|
||||||
filesystemType = "btrfs";
|
filesystemType = "btrfs";
|
||||||
|
|
||||||
|
gpg.enable = true;
|
||||||
|
|
||||||
|
users.users = [
|
||||||
|
"crumb"
|
||||||
|
];
|
||||||
|
|
||||||
impermanence = {
|
impermanence = {
|
||||||
enable = false;
|
enable = false;
|
||||||
directories = [
|
directories = [
|
||||||
@@ -22,9 +29,7 @@
|
|||||||
device = "placeholderrrr";
|
device = "placeholderrrr";
|
||||||
archiveLimit = 3;
|
archiveLimit = 3;
|
||||||
};
|
};
|
||||||
users.users = [
|
|
||||||
"crumb"
|
|
||||||
];
|
|
||||||
# niri.enable = true;
|
# 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