remove ssh private key and add it to sops.
This commit is contained in:
parent
914c64e982
commit
635f3cec9b
10 changed files with 91 additions and 14 deletions
|
|
@ -1,8 +0,0 @@
|
|||
-----BEGIN OPENSSH PRIVATE KEY-----
|
||||
b3BlbnNzaC1rZXktdjEAAAAACmFlczI1Ni1jdHIAAAAGYmNyeXB0AAAAGAAAABC2sRS60d
|
||||
BXX14enHHCynC9AAAAGAAAAAEAAAAzAAAAC3NzaC1lZDI1NTE5AAAAIETMs9b4xfFRsgPZ
|
||||
UzrVce3J27p0LBKLfZwhNMen0Da9AAAAkC3NVadOCQU0sd6qujTsqGPSbuO6iNaEBOj6hl
|
||||
GVPf/VwoGxadvzyQh7sdcOzr/nybcaNgOya7sjAWN0uClekHp/8ZUewU28xlmv2yXxpOXM
|
||||
UrDFaUcpWIRegALW8CpJf2ndykI1Y8eY2uwGJSWgWreBoCD81P1V68DSw8i4XVtW2Pad9y
|
||||
yYvR8TpNxCvyta2w==
|
||||
-----END OPENSSH PRIVATE KEY-----
|
||||
|
|
@ -11,10 +11,12 @@
|
|||
nixos-cosmic.nixosModules.default
|
||||
home-manager.nixosModules.home-manager
|
||||
dae.nixosModules.dae
|
||||
sops-nix.nixosModules.sops
|
||||
])
|
||||
++ [
|
||||
./nix.nix
|
||||
./home.nix
|
||||
./gpg.nix
|
||||
];
|
||||
|
||||
config = {
|
||||
|
|
|
|||
11
nixos/modules/gpg.nix
Normal file
11
nixos/modules/gpg.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{ ... }:
|
||||
{
|
||||
config = {
|
||||
programs.gnupg = {
|
||||
agent = {
|
||||
enable = true;
|
||||
enableSSHSupport = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -57,7 +57,7 @@
|
|||
}
|
||||
);
|
||||
extraSpecialArgs = {
|
||||
inherit outputs inputs;
|
||||
inherit outputs inputs rootPath;
|
||||
inherit (cfg) unixName hostName;
|
||||
inherit (pkgs) system;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue