add podman compose
This commit is contained in:
@@ -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 = {
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user