enable nfs
This commit is contained in:
parent
c1f98fb2fd
commit
40f69aee3b
1 changed files with 7 additions and 0 deletions
|
|
@ -24,12 +24,17 @@ in
|
|||
8472 # k3s, flannel: required if using multi-node for inter-node networking
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
nfs-utils
|
||||
];
|
||||
|
||||
sops.secrets.k3s_token = {
|
||||
format = "json";
|
||||
key = "token";
|
||||
sopsFile = "${inputs.secrets}/k3s.json";
|
||||
};
|
||||
|
||||
services.rpcbind.enable = true;
|
||||
services.k3s = {
|
||||
enable = true;
|
||||
token = config.sops.secrets.k3s_token.path;
|
||||
|
|
@ -44,6 +49,8 @@ in
|
|||
(builtins.attrNames config.services.k3s.manifests)
|
||||
];
|
||||
stopIfChanged = false;
|
||||
after = [ "rpcbind.service" "network-online.target" ];
|
||||
wants = [ "rpcbind.service" ];
|
||||
};
|
||||
|
||||
system.activationScripts.cleanK3sManifests = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue