mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 17:17:22 +01:00
refactor: WIP
This commit is contained in:
parent
289f072c13
commit
ecd37537cc
53 changed files with 2370 additions and 1932 deletions
|
|
@ -1,21 +1,16 @@
|
|||
{ pkgs, ... }:
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
programs.ssh.startAgent = false;
|
||||
options.swarselsystems.modules.yubikey = lib.mkEnableOption "yubikey config";
|
||||
config = lib.mkIf config.swarselsystems.modules.yubikey {
|
||||
programs.ssh.startAgent = false;
|
||||
|
||||
services.pcscd.enable = false;
|
||||
services.pcscd.enable = false;
|
||||
|
||||
hardware.gpgSmartcards.enable = true;
|
||||
hardware.gpgSmartcards.enable = true;
|
||||
|
||||
services.udev.packages = with pkgs; [
|
||||
yubikey-personalization
|
||||
];
|
||||
|
||||
# systemd.services.shutdownSopsGpg = {
|
||||
# path = [ pkgs.gnupg ];
|
||||
# script = ''
|
||||
# gpgconf --homedir /var/lib/sops --kill gpg-agent
|
||||
# '';
|
||||
# wantedBy = [ "multi-user.target" ];
|
||||
# };
|
||||
services.udev.packages = with pkgs; [
|
||||
yubikey-personalization
|
||||
];
|
||||
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue