mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 05:18:12 +09:00
sops
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
inputs.sops-nix.nixosModules.sops
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
# sops / age
|
||||
sops
|
||||
age
|
||||
ssh-to-age
|
||||
|
||||
# YubiKey edit key
|
||||
age-plugin-yubikey
|
||||
yubikey-manager
|
||||
pcsc-tools
|
||||
|
||||
# password hash generation
|
||||
mkpasswd
|
||||
];
|
||||
|
||||
# age-plugin-yubikey depend
|
||||
services.pcscd.enable = true;
|
||||
|
||||
services.openssh.enable = true;
|
||||
|
||||
sops = {
|
||||
defaultSopsFormat = "yaml";
|
||||
|
||||
age = {
|
||||
# system keys
|
||||
sshKeyPaths = [
|
||||
"/etc/ssh/ssh_host_ed25519_key"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user