Skip to content

Instantly share code, notes, and snippets.

View nikitawootten's full-sized avatar

Nikita Wootten nikitawootten

View GitHub Profile
@nikitawootten
nikitawootten / nvidia-test-arion.nix
Created August 16, 2023 22:01
An Arion NixOS module that requests an NVIDIA GPU
View nvidia-test-arion.nix
{ ... }:
{
virtualisation.arion.projects.nvidia-test.settings.services.nvidia-test = {
service = {
image = "nvidia/cuda:12.2.0-base-ubuntu20.04";
command = "nvidia-smi";
};
out.service = {
deploy.resources.reservations.devices = [
{
@nikitawootten
nikitawootten / cloudflare-ddns-cronjob.yaml
Last active September 2, 2023 22:26
Simple Cloudflare DDNS K8s `CronJob`
View cloudflare-ddns-cronjob.yaml
apiVersion: v1
kind: Secret
metadata:
name: cloudflare-ddns-secret
stringData:
ZONE_ID: ""
RECORD_ID: ""
NAME: test.example
TYPE: A
PROXIED: "true"