change from mono-home-manager to full flake multi-system configuration
This commit is contained in:
26
home/security.nix
Normal file
26
home/security.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
cfg = config.homeModules.security;
|
||||
in
|
||||
|
||||
lib.mkIf cfg.enable {
|
||||
|
||||
programs.gpg = {
|
||||
enable = true;
|
||||
mutableKeys = true; # allow changes in keys or trust
|
||||
mutableTrust = true;
|
||||
#publicKeys = [
|
||||
# {
|
||||
# source = ""; #./path/to/key.a;
|
||||
# trust = "ultimate";
|
||||
# }
|
||||
#];
|
||||
};
|
||||
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
addKeysToAgent = "yes"; # let home manager manage ssh keys
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user