fix: add kubectl, update charts

This commit is contained in:
2025-12-22 19:01:27 -08:00
parent 01294f3b8c
commit 560609426f
12 changed files with 38 additions and 61 deletions

View File

@@ -8,13 +8,14 @@
{
imports = [
./disk-config.nix
];
boot.loader.grub = {
enable = true;
efiSupport = true;
efiInstallAsRemovable = true;
device = "/dev/nvme0n1";
device = "/dev/vda";
};
networking.hostName = meta.hostname;
@@ -31,10 +32,10 @@
role = "server";
tokenFile = /var/lib/rancher/k3s/server/token;
clusterInit = true;
extraFlags = toString ([
extraFlags = toString [
"--write-kubeconfig-mode \"0644\""
"--disable local-storage"
]);
# "--disable local-storage"
];
};
services.openiscsi = {

View File

@@ -2,11 +2,15 @@
disko.devices = {
disk = {
disk1 = {
device = "/dev/nvme0n1";
device = "/dev/vda";
type = "disk";
content = {
type = "gpt";
partitions = {
boot = {
type = "EF02";
size = "1M";
};
ESP = {
type = "EF00";
size = "1G";

View File

@@ -1,34 +1,17 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{
config,
lib,
pkgs,
modulesPath,
...
}:
{ config, lib, pkgs, modulesPath, ... }:
{
imports = [ ];
imports =
[ (modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = [
"ata_piix"
"uhci_hcd"
"ehci_pci"
"nvme"
"sr_mod"
];
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.kernelModules = [ ];
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.ens33.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}