mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-12-11 17:31:58 +01:00
55f68ce75f
Signed-off-by: magic_rb <magic_rb@redalder.org>
61 lines
1.3 KiB
Nix
61 lines
1.3 KiB
Nix
{
|
|
config,
|
|
inputs',
|
|
pkgs,
|
|
...
|
|
}: {
|
|
imports = [
|
|
inputs'.uk3s-nix.nixosModules.uk3s
|
|
inputs'.uk3s-nix.nixosModules.uk3sNixSnapshotter
|
|
inputs'.uk3s-nix.nixosModules.ucontainers
|
|
inputs'.uk3s-nix.nixosModules.ucontainersNetwork
|
|
];
|
|
|
|
nixpkgs.overlays = [
|
|
inputs'.uk3s-nix.overlays.templateHelmChart
|
|
];
|
|
|
|
ucontainers.uk3s.settings = {
|
|
bind = [
|
|
"/mnt/kyle/infrastructure/k3s/postgresql:/var/lib/postgresql"
|
|
"/mnt/kyle/infrastructure/k3s/rancher:/var/lib/rancher"
|
|
"/etc/rancher:/etc/rancher"
|
|
"/mnt/jimmy/infrastructure/jellyfin:/data/jellyfin"
|
|
"/mnt/kyle/infrastructure/gitea:/data/gitea"
|
|
"/mnt/kyle/infrastructure/jellyfin/media:/data/jellyfin/media"
|
|
];
|
|
};
|
|
|
|
environment.systemPackages = [
|
|
config.services.uk3s.k3s.package
|
|
];
|
|
|
|
services.uk3s = {
|
|
enable = true;
|
|
hostAddress = "172.26.96.1/24";
|
|
guestAddress = "172.26.96.2/24";
|
|
|
|
vethNetwork = "172.26.96.0/24";
|
|
clusterNetwork = "172.26.80.0/20";
|
|
serviceNetwork = "172.26.88.0/21";
|
|
|
|
hostInterface = "uk3s0";
|
|
|
|
nix-snapshotter = {
|
|
enable = true;
|
|
};
|
|
|
|
k3s = {
|
|
settings = {
|
|
disable = [
|
|
"traefik"
|
|
"servicelb"
|
|
];
|
|
};
|
|
|
|
datastore = {
|
|
type = "postgresql";
|
|
};
|
|
};
|
|
};
|
|
}
|