Initializes git-crypt.

Just testing using pubkey files, will add nebula certs later.
This commit is contained in:
Bailey 2024-03-04 17:51:04 -05:00
parent b8cb823ff2
commit 4d3c2bb6da
4 changed files with 3 additions and 6 deletions

1
.gitattributes vendored Normal file
View file

@ -0,0 +1 @@
secrets/** filter=git-crypt diff=git-crypt

View file

@ -1,5 +0,0 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGBu4rmDrPAsVNArCMkgqjOSVWOtTaD6ZvWQYtJzUT8u mtxyz@mikenike
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINTsm2cnF/gFmJz3ogClVCq/qZP7L0lK+cFH7IQ/mEj6 mtxyz@jellydonut
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDmImjnbrhOa8rU2pFISuzt8TlrLmSS40B0IvxwuFrOY mtxyz@sushiroll
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPk4uKNLSOJsunzTmx49o6LUeExNP8xVC3+kOGGBbHDl mtxyz@europa
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINN+E/BTYS7sV0dXi7RL3xfb2sMz4el1GfKqhSbbayNb termux

View file

@ -2,6 +2,7 @@
config,
lib,
pkgs,
inputs,
...
}:
let
@ -26,7 +27,7 @@ in {
config = {
users.users.${cfg.name} = {
openssh.authorizedKeys.keyFiles = [
./authorized_keys
"${inputs.self}/secrets/authorized_keys"
];
isNormalUser = true;
extraGroups = [ "wheel" "dialout" ] ++ cfg.extraGroups;

BIN
secrets/authorized_keys Normal file

Binary file not shown.