✨ add k3s
This commit is contained in:
11
nix/modules/k3s/common.nix
Normal file
11
nix/modules/k3s/common.nix
Normal file
@ -0,0 +1,11 @@
|
||||
{ config, ... }:
|
||||
{
|
||||
services.k3s = {
|
||||
enable = true;
|
||||
tokenFile = config.sops.secrets.k3s-token.path;
|
||||
};
|
||||
sops.secrets.k3s-token = {
|
||||
owner = "root";
|
||||
mode = "0400";
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user