From 71fdec27b3492f2e517665f83659c5ba28a1c9bd Mon Sep 17 00:00:00 2001 From: Emile Date: Fri, 11 Apr 2025 19:33:01 +0200 Subject: forgot to commit for a while... --- nix/hosts/caladan/nvim_plugins.nix | 24 ++++++++++++++++++++ .../secrets/garage_admin_metrics_secret.age | 7 ++++++ .../corrino/secrets/garage_admin_token_secret.age | 7 ++++++ nix/hosts/corrino/secrets/garage_rpc_secret.age | Bin 387 -> 387 bytes .../corrino/secrets/tailscale-corrino-cert.age | Bin 0 -> 3247 bytes .../corrino/secrets/tailscale-corrino-key.age | 8 +++++++ nix/hosts/corrino/www/mc.emile.space.nix | 23 +++++++++++++++++++ nix/pkgs/glibc-all-in-one/default.nix | 25 +++++++++++++++++++++ 8 files changed, 94 insertions(+) create mode 100644 nix/hosts/caladan/nvim_plugins.nix create mode 100644 nix/hosts/corrino/secrets/garage_admin_metrics_secret.age create mode 100644 nix/hosts/corrino/secrets/garage_admin_token_secret.age create mode 100644 nix/hosts/corrino/secrets/tailscale-corrino-cert.age create mode 100644 nix/hosts/corrino/secrets/tailscale-corrino-key.age create mode 100644 nix/hosts/corrino/www/mc.emile.space.nix create mode 100644 nix/pkgs/glibc-all-in-one/default.nix (limited to 'nix') diff --git a/nix/hosts/caladan/nvim_plugins.nix b/nix/hosts/caladan/nvim_plugins.nix new file mode 100644 index 0000000..2bc46d7 --- /dev/null +++ b/nix/hosts/caladan/nvim_plugins.nix @@ -0,0 +1,24 @@ +{ vimUtils, fetchgit, ... }: + +let + build-vim = vimUtils.buildVimPluginFrom2Nix; + + build = ({name, owner, rev, sha256}: build-vim { + name = name; + src = fetchgit { + url = "https://github.com/${owner}/${name}"; + rev = rev; + sha256 = sha256; + }; + dependencies = []; + }); +in { + lisp = { + vlime = build { + name = "vlime"; + owner = "l04m33"; + rev = "065b95f3ac7a455314c2bdefeb2b792f290034df"; + sha256 = "1bmmskdwvbl6lvbnjp9lls86rz0vzmk73y644bjb9ix9ygmjbia4"; + }; + }; +} diff --git a/nix/hosts/corrino/secrets/garage_admin_metrics_secret.age b/nix/hosts/corrino/secrets/garage_admin_metrics_secret.age new file mode 100644 index 0000000..e1af7da --- /dev/null +++ b/nix/hosts/corrino/secrets/garage_admin_metrics_secret.age @@ -0,0 +1,7 @@ +age-encryption.org/v1 +-> ssh-ed25519 gvwQ2Q 7QkcpYGeeMsbW0GcXzNGPTc0jUf4ydpMiTO6ZxEIKGY +OOxq2hMORsmUzBuoqOIPNJeLqJB0seve9PhorS6PKNs +-> ssh-ed25519 m8VklA pF7mWG6tviFC6qD88dxoQRnXGfR0AuanVyY+bh8XgV0 +mrk4HgEs3i8y5P+BSGM1psweXpY/xO+8vK/DsXyhyiY +--- zqEl/ZN/3jEgMZ/IbPbyTHGZJDDENLOnoQezaACeoSs + l,±W`\6yh. oV(?Em,;(@0dVA =4v \ No newline at end of file diff --git a/nix/hosts/corrino/secrets/garage_admin_token_secret.age b/nix/hosts/corrino/secrets/garage_admin_token_secret.age new file mode 100644 index 0000000..2a18a6b --- /dev/null +++ b/nix/hosts/corrino/secrets/garage_admin_token_secret.age @@ -0,0 +1,7 @@ +age-encryption.org/v1 +-> ssh-ed25519 gvwQ2Q hcMMVkZSsObrOFjetml2z4eH+EfnuSsna+GaXEeMUA4 +y6lFBj49cMhOGuJBpILHsykpBMpKDHZpFXR4E4zZEbg +-> ssh-ed25519 m8VklA Z6zLilTWlGWG17Q6jBx13m3KYs3gE93TPLq0CidHeTA +eqMN5mDMasi/Nw2y5Kgwy2COna+3zbbFTTUrD/O26ls +--- QdVyqrTLmEcGSB37Ft3Ur0Ry9Jk9DyHFI6fo88tnsgI +X`wY,1nsNr_Y\` )F#{< \ No newline at end of file diff --git a/nix/hosts/corrino/secrets/garage_rpc_secret.age b/nix/hosts/corrino/secrets/garage_rpc_secret.age index e228d0d..ce8a65a 100644 Binary files a/nix/hosts/corrino/secrets/garage_rpc_secret.age and b/nix/hosts/corrino/secrets/garage_rpc_secret.age differ diff --git a/nix/hosts/corrino/secrets/tailscale-corrino-cert.age b/nix/hosts/corrino/secrets/tailscale-corrino-cert.age new file mode 100644 index 0000000..07252cc Binary files /dev/null and b/nix/hosts/corrino/secrets/tailscale-corrino-cert.age differ diff --git a/nix/hosts/corrino/secrets/tailscale-corrino-key.age b/nix/hosts/corrino/secrets/tailscale-corrino-key.age new file mode 100644 index 0000000..36c132e --- /dev/null +++ b/nix/hosts/corrino/secrets/tailscale-corrino-key.age @@ -0,0 +1,8 @@ +age-encryption.org/v1 +-> ssh-ed25519 gvwQ2Q P6b4m51AxFbXT3OOkgMe/BPZi3240e/Gii3weyMtPxI +fRVIno8tPqh4F6e6TOj6YiW2uL9T3uqkro6EZ1mPXOc +-> ssh-ed25519 m8VklA lRMfdLzmoVybkJJvTlY1lZgkMt1R0wyjA/NFcdRFKDM +CLyqRXYetMUbsGhL8NRQ333WIy/TnJwhWX8UpxyLmbw +--- zTjX+CIXtDurBc+TaT7zQ0xn/5Xx3mIrKkAviqMgn4c +:$+D\[Q.pSi_! %neUVI4sA6_kP4-=.dxqt+)4`+E2 R&0__$V}Hojܾ}aB|//@L#IK3Dt +C? 4?u}7! \ No newline at end of file diff --git a/nix/hosts/corrino/www/mc.emile.space.nix b/nix/hosts/corrino/www/mc.emile.space.nix new file mode 100644 index 0000000..2a08f69 --- /dev/null +++ b/nix/hosts/corrino/www/mc.emile.space.nix @@ -0,0 +1,23 @@ +{ pkgs, ... }: + +{ + services.minecraft-server = { + package = pkgs.minecraft-server; + serverProperties = { + server-port = 43000; + difficulty = 3; + gamemode = 1; + max-players = 5; + motd = "Neurodivergenter Hexenzirkel"; + white-list = false; + enable-rcon = true; + "rcon.password" = "hunter2"; + }; + openFirewall = true; + jvmOpts = "-Xms4092M -Xmx4092M -XX:+UseG1GC -XX:+CMSIncrementalPacing -XX:+CMSClassUnloadingEnabled -XX:ParallelGCThreads=2 -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10"; + eula = true; + enable = true; + declarative = true; + dataDir = "/var/lib/minecraft"; + }; +} diff --git a/nix/pkgs/glibc-all-in-one/default.nix b/nix/pkgs/glibc-all-in-one/default.nix new file mode 100644 index 0000000..bbb0824 --- /dev/null +++ b/nix/pkgs/glibc-all-in-one/default.nix @@ -0,0 +1,25 @@ +{ pkgs ? import {}, lib, fetchFromGitHub }: + +pkgs.stdenv.mkDerivation rec { + name = "glibc-all-in-one"; + version = "master"; + + src = fetchFromGitHub { + owner = "fr0ster"; + repo = "glibc-all-in-one"; + rev = version; + sha256 = "Zysjhr76TenMarnoKo+M8DrTNbsnaXSoFZO1puPVoxU="; + }; + + buildPhase = ''''; + + installPhase = '' + ''; + + meta = { + description = ""; + homepage = "https://github.com/fr0ster/glibc-all-in-one"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ hanemile ]; + }; + } -- cgit 1.4.1