From b34c53ddf8db360acf161e43f6c9b0d949b5859f Mon Sep 17 00:00:00 2001 From: quitte Date: Sun, 19 May 2024 11:21:30 +0200 Subject: [PATCH] podman: conf in extra file --- modules/core/default.nix | 1 + modules/core/podman.nix | 17 +++++++++++++++++ modules/kanboard.nix | 18 +----------------- 3 files changed, 19 insertions(+), 17 deletions(-) create mode 100644 modules/core/podman.nix diff --git a/modules/core/default.nix b/modules/core/default.nix index 8fb9099..de763c0 100755 --- a/modules/core/default.nix +++ b/modules/core/default.nix @@ -7,6 +7,7 @@ ./initrd-ssh.nix ./mysql.nix ./nginx.nix + ./podman.nix ./postgres.nix ./sssd.nix ./zsh.nix diff --git a/modules/core/podman.nix b/modules/core/podman.nix new file mode 100644 index 0000000..ecf0443 --- /dev/null +++ b/modules/core/podman.nix @@ -0,0 +1,17 @@ +{ config, pkgs, ... }: +{ + # From: https://nixos.wiki/wiki/Podman + virtualisation.containers.enable = true; + virtualisation = { + podman = { + enable = true; + + # Create a `docker` alias for podman, to use it as a drop-in replacement + dockerCompat = true; + + # Required for containers under podman-compose to be able to talk to each other. + defaultNetwork.settings.dns_enabled = true; + }; + }; + virtualisation.oci-containers.backend = "podman"; +} \ No newline at end of file diff --git a/modules/kanboard.nix b/modules/kanboard.nix index 01afbe6..e80cb69 100644 --- a/modules/kanboard.nix +++ b/modules/kanboard.nix @@ -5,23 +5,7 @@ let in { sops.secrets."kanboard_env" = { }; - - - # Podman - virtualisation.containers.enable = true; - virtualisation = { - podman = { - enable = true; - - # Create a `docker` alias for podman, to use it as a drop-in replacement - dockerCompat = true; - - # Required for containers under podman-compose to be able to talk to each other. - defaultNetwork.settings.dns_enabled = true; - }; - }; - virtualisation.oci-containers.backend = "podman"; - + virtualisation.oci-containers = { containers.kanboard = { image = "ghcr.io/kanboard/kanboard:v1.2.35";