Skip to content

Instantly share code, notes, and snippets.

View 3deep5me's full-sized avatar

3deep5me

View GitHub Profile
@3deep5me
3deep5me / hardware-configuration.nix
Created November 9, 2025 09:07
Asus X13 2022 gv301 Nixos Hardware config
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "thunderbolt" "usbhid" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" "amdgpu" ];
@3deep5me
3deep5me / clusterrole.yaml
Last active September 2, 2025 20:20
Try to setup multiple kind clusters with also an external interface
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: node-ip-reporter-role
rules:
- apiGroups: [""]
resources: ["nodes"]
verbs: ["get", "list", "watch", "patch", "update"]
- apiGroups: [""]
resources: ["nodes/status"]
@3deep5me
3deep5me / main.tf
Created February 11, 2025 10:18
Hetzner Object Storage with AWS Terraform Provider
resource "aws_s3_bucket" "main" {
bucket = "my-bucket-a9c8ae4e2"
object_lock_enabled = true
}
resource "aws_s3_bucket_acl" "main" {
bucket = aws_s3_bucket.main.id
acl = "private"
}
@3deep5me
3deep5me / main.tf
Last active August 13, 2025 10:07
Free Kubernetes Cluster - Terraform x Cloud-init to create an auto updating k3s ARM node on oracle always free tier with Ubuntu 22.04 minimal
variable "oci_compartment_id" {
description = "ID des Oracle Cloud Compartments"
type = string
}
data "oci_core_images" "ampere-ubuntu-images" {
compartment_id = var.oci_compartment_id
operating_system = "Canonical Ubuntu"
operating_system_version = "22.04 Minimal aarch64"
shape = "VM.Standard.A1.Flex"