Enable first podman container

This commit is contained in:
2025-04-25 08:31:10 +02:00
parent e07c854ae0
commit 68ec429e96
6 changed files with 69 additions and 6 deletions

View File

@@ -0,0 +1,26 @@
{ config, lib, ... }:
with lib;
let
cfg = config.settings.containers.nginx;
in {
options = {
settings.containers.nginx.enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = ''
Enable nginx container
'';
};
};
config = mkIf cfg.enable {
services.podman.containers.nginx = {
image = "nginx";
ports = [
"8080:80"
];
};
};
}

View File

@@ -15,6 +15,7 @@
./applications/zellij.nix
./services/nextcloud.nix
./services/podman.nix
./theming/fonts.nix
./theming/stylix.nix

View File

@@ -0,0 +1,23 @@
{ pkgs, lib, config, ... }:
with lib;
let
cfg = config.settings.services.podman;
in {
options = {
settings.services.podman.enable = lib.mkOption {
type = lib.types.bool;
default = false;
description = ''
Enable podman configuration
'';
};
};
config = mkIf cfg.enable {
services.podman = {
enable = true;
};
};
}