Initial keys, and basic token file for sops cluster testing

This commit is contained in:
2025-12-13 01:55:25 -08:00
parent c360755253
commit 353135a2d9
6 changed files with 87 additions and 6 deletions

View File

@@ -1,9 +1,11 @@
{ config, pkgs, ... }:
{
sops.secrets.k3s_token.sopsFile = secrets/cluster.yaml;
services.k3s = {
enable = true;
role = "server";
token = "forinitialtestingonly";
tokenFile = config.sops.secrets.k3s_token.path;
clusterInit = true;
};
}

View File

@@ -1,5 +1,8 @@
{ config, pkgs, ... }:
{ inputs, ... }:
{
home-manager.useGlobalPkgs = true;
home-manager.backupFileExtension = "bkp";
}
home-manager.useGlobalPkgs = true;
home-manager.backupFileExtension = "bkp";
home-manager.sharedModules = [
inputs.sops-nix.homeManagerModules.sops
];
}

View File

@@ -1,5 +1,12 @@
{ pkgs, config, ... }:
{
environment.systemPackages = with pkgs; [
sops
age
];
sops.age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
security.sudo = {
enable = true;
extraRules = [