add podman compose

This commit is contained in:
2025-10-12 19:01:52 -05:00
parent cd55d1d7cf
commit 39c108b3ee
4 changed files with 8 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
# flake for blakes nixos config
# define new devices in outputs
# generation: 373, timestamp: 2025-10-12 18:19:50
# generation: 374, timestamp: 2025-10-12 18:59:25
{
description = "blakes nix config";
inputs = {

View File

@@ -49,7 +49,7 @@ in
uid = lib.mkForce cfg.ids;
isSystemUser = true;
home = cfg.data_dir;
# createHome = true;
createHome = true;
group = "${service}";
extraGroups = [ "media" ];
};
@@ -64,7 +64,7 @@ in
server = {
port = cfg.port;
downloadAsCbz = true;
# localSourcePath = cfg.data_dir;
localSourcePath = cfg.data_dir;
};
};
};

View File

@@ -9,6 +9,10 @@ in
};
config = lib.mkIf cfg.enable {
# install the binary for compose
environment.systemPackages = with pkgs; [ podman-compose ];
virtualisation = {
oci-containers.backend = "podman";
podman = {

View File

@@ -20,7 +20,7 @@ in
# create blake user
users.users.${cfg.username} = {
isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" "docker" "media" "minecraft" ]; # Enable sudo for the user.
extraGroups = [ "wheel" "networkmanager" "docker" "media" "podman" "minecraft" ]; # Enable sudo for the user.
uid = 1000;
shell = pkgs.zsh;
group = "blake";