forked from nico/dots
k3s: init
This commit is contained in:
parent
9d576b4c57
commit
04a828d78d
2 changed files with 13 additions and 0 deletions
|
|
@ -34,6 +34,7 @@
|
||||||
./modules/applications/1password.nix
|
./modules/applications/1password.nix
|
||||||
./modules/services/archiveteam-warrior.nix
|
./modules/services/archiveteam-warrior.nix
|
||||||
./modules/services/linkding.nix
|
./modules/services/linkding.nix
|
||||||
|
./modules/services/k3s.nix
|
||||||
|
|
||||||
./modules/nix/linux.nix
|
./modules/nix/linux.nix
|
||||||
./modules/shell.nix
|
./modules/shell.nix
|
||||||
|
|
|
||||||
12
modules/services/k3s.nix
Normal file
12
modules/services/k3s.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
{ config, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
services.k3s = {
|
||||||
|
enable = true;
|
||||||
|
role = "server";
|
||||||
|
};
|
||||||
|
|
||||||
|
networking.firewall.allowedTCPPorts = [
|
||||||
|
6443 # k3s: required so that pods can reach the API server (running on port 6443 by default)
|
||||||
|
];
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue