From a041768aa153d51391ebcb80f3ceddf1d2379885 Mon Sep 17 00:00:00 2001 From: makefu Date: Tue, 28 Dec 2021 23:49:34 +0100 Subject: [PATCH 1/3] k 3 ma: make ed25519 keys available for hosts --- krebs/3modules/makefu/default.nix | 6 ++++++ krebs/3modules/makefu/retiolum/cake_ed25519.pub | 1 + krebs/3modules/makefu/retiolum/crapi.pub | 1 - krebs/3modules/makefu/retiolum/crapi_ed25519.pub | 1 + krebs/3modules/makefu/retiolum/fileleech_ed25519.pub | 1 + krebs/3modules/makefu/retiolum/sdev_ed25519.pub | 1 + krebs/3modules/makefu/retiolum/studio_ed25519.pub | 1 + krebs/3modules/makefu/retiolum/wbob_ed25519.pub | 1 + 8 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 krebs/3modules/makefu/retiolum/cake_ed25519.pub create mode 100644 krebs/3modules/makefu/retiolum/crapi_ed25519.pub create mode 100644 krebs/3modules/makefu/retiolum/fileleech_ed25519.pub create mode 100644 krebs/3modules/makefu/retiolum/sdev_ed25519.pub create mode 100644 krebs/3modules/makefu/retiolum/studio_ed25519.pub create mode 100644 krebs/3modules/makefu/retiolum/wbob_ed25519.pub diff --git a/krebs/3modules/makefu/default.nix b/krebs/3modules/makefu/default.nix index 7780863a3..51c38b899 100644 --- a/krebs/3modules/makefu/default.nix +++ b/krebs/3modules/makefu/default.nix @@ -22,6 +22,12 @@ with import ; (krebs.genipv6 "retiolum" "makefu" { inherit hostName; }).address; }; }) + # Retiolum ed25519 keys + (let + pubkey-path = ./retiolum + "/${hostName}_ed25519.pub"; + in optionalAttrs (pathExists pubkey-path) { + nets.retiolum.tinc.pubkey_ed25519 = builtins.trace "using ed25519 key for host ${hostName}" (readFile pubkey-path); + }) # Wiregrill defaults (let pubkey-path = ./wiregrill + "/${hostName}.pub"; diff --git a/krebs/3modules/makefu/retiolum/cake_ed25519.pub b/krebs/3modules/makefu/retiolum/cake_ed25519.pub new file mode 100644 index 000000000..6c6bf2b33 --- /dev/null +++ b/krebs/3modules/makefu/retiolum/cake_ed25519.pub @@ -0,0 +1 @@ +zlfSyJdG7vJmvkk1Ul3ZXUix2YduFYUMhM89nRdy8aE diff --git a/krebs/3modules/makefu/retiolum/crapi.pub b/krebs/3modules/makefu/retiolum/crapi.pub index 2b6104468..c66f24882 100644 --- a/krebs/3modules/makefu/retiolum/crapi.pub +++ b/krebs/3modules/makefu/retiolum/crapi.pub @@ -1,4 +1,3 @@ -Ed25519PublicKey = Zkh6vtSNBvKYUjCPsMyAFJmxzueglCDoawVPCezKy4F -----BEGIN RSA PUBLIC KEY----- MIIBCgKCAQEAloXLBfZQEVW9mJ7uwOoa+DfV4ek/SG+JQuexJMugei/iNy0NjY66 OVIkzFmED32c3D7S1+Q+5Mc3eR02k1o7XERpZeZhCtJOBlS4xMzCKH62E4USvH5L diff --git a/krebs/3modules/makefu/retiolum/crapi_ed25519.pub b/krebs/3modules/makefu/retiolum/crapi_ed25519.pub new file mode 100644 index 000000000..ce5a6f05a --- /dev/null +++ b/krebs/3modules/makefu/retiolum/crapi_ed25519.pub @@ -0,0 +1 @@ +Zkh6vtSNBvKYUjCPsMyAFJmxzueglCDoawVPCezKy4F diff --git a/krebs/3modules/makefu/retiolum/fileleech_ed25519.pub b/krebs/3modules/makefu/retiolum/fileleech_ed25519.pub new file mode 100644 index 000000000..ea93cfddb --- /dev/null +++ b/krebs/3modules/makefu/retiolum/fileleech_ed25519.pub @@ -0,0 +1 @@ +2YSzoLSQN3k4HC8uozPb/nMmbrTa9eKOD2Ka9Iq8iXM diff --git a/krebs/3modules/makefu/retiolum/sdev_ed25519.pub b/krebs/3modules/makefu/retiolum/sdev_ed25519.pub new file mode 100644 index 000000000..fef79aa68 --- /dev/null +++ b/krebs/3modules/makefu/retiolum/sdev_ed25519.pub @@ -0,0 +1 @@ +OxXCkjs3OzIsMXcSVcr7dJD55iRFRjUc0eERPdU1OjO diff --git a/krebs/3modules/makefu/retiolum/studio_ed25519.pub b/krebs/3modules/makefu/retiolum/studio_ed25519.pub new file mode 100644 index 000000000..13a09ad1b --- /dev/null +++ b/krebs/3modules/makefu/retiolum/studio_ed25519.pub @@ -0,0 +1 @@ +WLUvBME38jEpXIEFniyVIjyvMw7JTNJBQb/NIXcxmzL diff --git a/krebs/3modules/makefu/retiolum/wbob_ed25519.pub b/krebs/3modules/makefu/retiolum/wbob_ed25519.pub new file mode 100644 index 000000000..eeef652e2 --- /dev/null +++ b/krebs/3modules/makefu/retiolum/wbob_ed25519.pub @@ -0,0 +1 @@ +b3uia4Sns0ljQrccLE0QxzeAB4APTiJEB98neQQosdF From 3330b6a2c4bd6a2fb4614dd9283d97d40f9f1a41 Mon Sep 17 00:00:00 2001 From: makefu Date: Wed, 29 Dec 2021 00:05:10 +0100 Subject: [PATCH 2/3] k 3 ma: add ed25519 keys for all hosts --- krebs/3modules/makefu/retiolum/filepimp_ed25519.pub | 1 + krebs/3modules/makefu/retiolum/firecracker_ed25519.pub | 1 + krebs/3modules/makefu/retiolum/flap_ed25519.pub | 1 + krebs/3modules/makefu/retiolum/gum_ed25519.pub | 1 + krebs/3modules/makefu/retiolum/nukular_ed25519.pub | 1 + krebs/3modules/makefu/retiolum/omo_ed25519.pub | 1 + krebs/3modules/makefu/retiolum/senderechner_ed25519.pub | 1 + krebs/3modules/makefu/retiolum/tsp_ed25519.pub | 1 + krebs/3modules/makefu/retiolum/vbob.pub | 8 ++++++++ krebs/3modules/makefu/retiolum/vbob_ed25519.pub | 1 + krebs/3modules/makefu/retiolum/x_ed25519.pub | 1 + 11 files changed, 18 insertions(+) create mode 100644 krebs/3modules/makefu/retiolum/filepimp_ed25519.pub create mode 100644 krebs/3modules/makefu/retiolum/firecracker_ed25519.pub create mode 100644 krebs/3modules/makefu/retiolum/flap_ed25519.pub create mode 100644 krebs/3modules/makefu/retiolum/gum_ed25519.pub create mode 100644 krebs/3modules/makefu/retiolum/nukular_ed25519.pub create mode 100644 krebs/3modules/makefu/retiolum/omo_ed25519.pub create mode 100644 krebs/3modules/makefu/retiolum/senderechner_ed25519.pub create mode 100644 krebs/3modules/makefu/retiolum/tsp_ed25519.pub create mode 100644 krebs/3modules/makefu/retiolum/vbob.pub create mode 100644 krebs/3modules/makefu/retiolum/vbob_ed25519.pub create mode 100644 krebs/3modules/makefu/retiolum/x_ed25519.pub diff --git a/krebs/3modules/makefu/retiolum/filepimp_ed25519.pub b/krebs/3modules/makefu/retiolum/filepimp_ed25519.pub new file mode 100644 index 000000000..7a62ff46f --- /dev/null +++ b/krebs/3modules/makefu/retiolum/filepimp_ed25519.pub @@ -0,0 +1 @@ +aQDHnUzOhf8zhMOB/ufTaP4rQLrizfN135PVgfTLkaC diff --git a/krebs/3modules/makefu/retiolum/firecracker_ed25519.pub b/krebs/3modules/makefu/retiolum/firecracker_ed25519.pub new file mode 100644 index 000000000..76e6def7c --- /dev/null +++ b/krebs/3modules/makefu/retiolum/firecracker_ed25519.pub @@ -0,0 +1 @@ +3QIlv3vsykhMlsrsHUbU/vneVbYiE6G1U7HPzK2AbRI diff --git a/krebs/3modules/makefu/retiolum/flap_ed25519.pub b/krebs/3modules/makefu/retiolum/flap_ed25519.pub new file mode 100644 index 000000000..47da38477 --- /dev/null +++ b/krebs/3modules/makefu/retiolum/flap_ed25519.pub @@ -0,0 +1 @@ +1o7+d8jjitc1vJB1sYFY8qvbcePssD6c+sgfxqq+BXD diff --git a/krebs/3modules/makefu/retiolum/gum_ed25519.pub b/krebs/3modules/makefu/retiolum/gum_ed25519.pub new file mode 100644 index 000000000..5b6f2426e --- /dev/null +++ b/krebs/3modules/makefu/retiolum/gum_ed25519.pub @@ -0,0 +1 @@ +6M/fxVpfUCpbWvOXR9eHjt3o7sgjAEoIT/hXcDN970E diff --git a/krebs/3modules/makefu/retiolum/nukular_ed25519.pub b/krebs/3modules/makefu/retiolum/nukular_ed25519.pub new file mode 100644 index 000000000..0cae03b83 --- /dev/null +++ b/krebs/3modules/makefu/retiolum/nukular_ed25519.pub @@ -0,0 +1 @@ +nL4hL0aJvufqdSvTafAnc/g0wjznIwuHlEq/h/OxEsF diff --git a/krebs/3modules/makefu/retiolum/omo_ed25519.pub b/krebs/3modules/makefu/retiolum/omo_ed25519.pub new file mode 100644 index 000000000..dd11ab7dd --- /dev/null +++ b/krebs/3modules/makefu/retiolum/omo_ed25519.pub @@ -0,0 +1 @@ +SVuxrF4CQGRl3evQurw0wh44g72/0qwRACF+/n2i2rE diff --git a/krebs/3modules/makefu/retiolum/senderechner_ed25519.pub b/krebs/3modules/makefu/retiolum/senderechner_ed25519.pub new file mode 100644 index 000000000..f0968aa12 --- /dev/null +++ b/krebs/3modules/makefu/retiolum/senderechner_ed25519.pub @@ -0,0 +1 @@ +LegGLszL9hZXoanCQnv0VxuoLviT2K/yvQGYuCsloUH diff --git a/krebs/3modules/makefu/retiolum/tsp_ed25519.pub b/krebs/3modules/makefu/retiolum/tsp_ed25519.pub new file mode 100644 index 000000000..c7baf9067 --- /dev/null +++ b/krebs/3modules/makefu/retiolum/tsp_ed25519.pub @@ -0,0 +1 @@ +gzMYJY6/6sgG4ZgYWzeDs6svTvsDIeJEAGxPbrJUFVN diff --git a/krebs/3modules/makefu/retiolum/vbob.pub b/krebs/3modules/makefu/retiolum/vbob.pub new file mode 100644 index 000000000..168437e78 --- /dev/null +++ b/krebs/3modules/makefu/retiolum/vbob.pub @@ -0,0 +1,8 @@ +-----BEGIN RSA PUBLIC KEY----- +MIIBCgKCAQEA+0TIo0dS9LtSdrmH0ClPHLO7dHtV9Dj7gaBAsbyuwxAI5cQgYKwr +4G6t7IcJW+Gu2bh+LKtPP91+zYXq4Qr1nAaKw4ajsify6kpxsCBzknmwi6ibIJMI +AK114dr/XSk/Pc6hOSA8kqDP4c0MZXwitRBiNjrWbTrQh6GJ3CXhmpZ2lJkoAyNP +hjdPerbTUrhQlNW8FanyQQzOgN5I7/PXsZShmb3iNKz1Ban5yWKFCVpn8fjWQs5o +Un2AKowH4Y+/g8faGemL8uy/k5xrHSrn05L92TPDUpAXrcZXzo6ao1OBiwJJVl7s +AVduOY18FU82GUw7edR0e/b2UC6hUONflwIDAQAB +-----END RSA PUBLIC KEY----- diff --git a/krebs/3modules/makefu/retiolum/vbob_ed25519.pub b/krebs/3modules/makefu/retiolum/vbob_ed25519.pub new file mode 100644 index 000000000..5e287f36b --- /dev/null +++ b/krebs/3modules/makefu/retiolum/vbob_ed25519.pub @@ -0,0 +1 @@ +fRPhdsYqwPuYgL2p/CmAUCVykU9GbiRfHQ8SULPQNGE diff --git a/krebs/3modules/makefu/retiolum/x_ed25519.pub b/krebs/3modules/makefu/retiolum/x_ed25519.pub new file mode 100644 index 000000000..fbf63d08e --- /dev/null +++ b/krebs/3modules/makefu/retiolum/x_ed25519.pub @@ -0,0 +1 @@ +81FOjlXXS22WWZzLnL4sDCuXmvMoYkbhy0wlBlr60zM From 81cc5dc969a5cde6e26ee5061dc57cbbbf758450 Mon Sep 17 00:00:00 2001 From: makefu Date: Sun, 2 Jan 2022 21:36:44 +0100 Subject: [PATCH 3/3] ma pkgs.pkgrename: init --- makefu/5pkgs/pkgrename/default.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 makefu/5pkgs/pkgrename/default.nix diff --git a/makefu/5pkgs/pkgrename/default.nix b/makefu/5pkgs/pkgrename/default.nix new file mode 100644 index 000000000..5eeb161e7 --- /dev/null +++ b/makefu/5pkgs/pkgrename/default.nix @@ -0,0 +1,30 @@ +{ lib, stdenv, fetchFromGitHub, curl +}: +stdenv.mkDerivation rec { + name = "pkgrename"; + version = "1.03"; + + src = fetchFromGitHub { + owner = "hippie68"; + repo = "pkgrename"; + rev = "c3e5c47ed9367273bd09577af46d3d9bf87b2a50"; + sha256 = "0cphxdpj04h1i0qf5mji3xqdsbyilvd5b4gwp4vx914r6k5f0xf3"; + }; + + buildInputs = [ curl.dev ]; + buildPhase = '' + cd pkgrename.c + gcc pkgrename.c src/*.c -o pkgrename -lcurl -s -O1 $(curl-config --cflags --libs) + ''; + installPhase = '' + install -D pkgrename $out/bin/pkgrename + ''; + + meta = { + description = "Tool to rename ps4 .pkg files"; + homepage = "https://github.com/hippie68/pkgrename"; + license = lib.licenses.gpl3; + platforms = lib.platforms.linux; + maintainers = with lib.maintainers; [ makefu ]; + }; +}