diff options
| author | adikro <adikro@disroot.org> | 2026-05-10 23:02:01 +0200 |
|---|---|---|
| committer | adikro <adikro@disroot.org> | 2026-05-10 23:02:01 +0200 |
| commit | 7c8503e8fa77cb20819e2ba5a6a0f1a261cf089f (patch) | |
| tree | 212001f743fba7224ac57007e1a499c7615c0b19 /os/srv/oci.nix | |
| parent | baf1cf5664b481de17849c97dc683fa81ade1c2e (diff) | |
added basic configuration for nginx, oci-containers and simplex-chat servers
Diffstat (limited to 'os/srv/oci.nix')
| -rw-r--r-- | os/srv/oci.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/os/srv/oci.nix b/os/srv/oci.nix new file mode 100644 index 0000000..0d781a7 --- /dev/null +++ b/os/srv/oci.nix @@ -0,0 +1,31 @@ +{ + config, + lib, + pkgs, + ... +}: +let + cfg = config.os.srv.oci; +in +{ + options.os.srv.oci.enable = lib.mkEnableOption "OCI container support via Podman"; + config = lib.mkIf cfg.enable { + virtualisation.podman = { + enable = true; + dockerCompat = true; + defaultNetwork.settings.dns_enabled = true; + autoPrune = { + enable = true; + dates = "weekly"; + flags = [ "--all" ]; + }; + }; + + virtualisation.oci-containers.backend = "podman"; + + environment.systemPackages = with pkgs; [ + podman-tui + podman-compose + ]; + }; +} |
