From 4e3f4b416f478286732fbcf879723f34ae203d89 Mon Sep 17 00:00:00 2001 From: David Crompton Date: Sun, 11 May 2025 18:47:47 -0400 Subject: [PATCH] Pericyte: Test --- machines/pericyte/configuration.nix | 1 + machines/pericyte/test.nix | 32 +++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 machines/pericyte/test.nix diff --git a/machines/pericyte/configuration.nix b/machines/pericyte/configuration.nix index 511f39e..1aec683 100644 --- a/machines/pericyte/configuration.nix +++ b/machines/pericyte/configuration.nix @@ -6,6 +6,7 @@ ./podman.nix ./container-registry.nix + ./test.nix # ./microvm-configuration.nix # ./k3s.nix ]; diff --git a/machines/pericyte/test.nix b/machines/pericyte/test.nix new file mode 100644 index 0000000..82f4603 --- /dev/null +++ b/machines/pericyte/test.nix @@ -0,0 +1,32 @@ +{ pkgs, ... }: { + users.groups.peertube = { }; + users.users.peertube = { + isSystemUser = true; + group = "peertube"; + home = "/var/lib/peertube"; + createHome = true; + uid = 2342; + subUidRanges = [ + { + count = 65536; + startUid = 2147483646; + } + ]; + subGidRanges = [ + { + count = 65536; + startGid = 2147483647; + } + ]; + }; + virtualisation.oci-containers = { + backend = "podman"; + # containers.peertube = { + # image = "chocobozzz/peertube:latest"; + # ports = [ ]; + # podman = { + # user = "peertube"; + # }; + # }; + }; +}