Fixed home manager inputs, and got sops-nix working for all current hosts

This commit is contained in:
2025-12-13 13:49:50 -08:00
parent a3837016ae
commit b3fd29faef
5 changed files with 33 additions and 9 deletions

View File

@@ -1,9 +1,11 @@
{ config, pkgs, ... }:
{
sops.secrets.k3s_token.sopsFile = ../../secrets/cluster.yaml;
services.k3s = {
enable = true;
role = "server"; # Or "agent" for worker only nodes
token = "forinitialtestingonly";
tokenFile = config.sops.secrets.k3s_token.path;
serverAddr = "https://cap-clust-01:6443";
};
}

View File

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