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 # flake for blakes nixos config
# define new devices in outputs # 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"; description = "blakes nix config";
inputs = { inputs = {

View File

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

View File

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

View File

@@ -20,7 +20,7 @@ in
# create blake user # create blake user
users.users.${cfg.username} = { users.users.${cfg.username} = {
isNormalUser = true; 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; uid = 1000;
shell = pkgs.zsh; shell = pkgs.zsh;
group = "blake"; group = "blake";