Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce podman home-manager module #906

Closed
kachick opened this issue Nov 2, 2024 · 1 comment
Closed

Introduce podman home-manager module #906

kachick opened this issue Nov 2, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@kachick
Copy link
Owner

kachick commented Nov 2, 2024

dotfiles/README.md

Lines 97 to 117 in 0b86d5a

### Podman on Ubuntu
1. Install uidmap without Nix for use of podman even if the podman will be installed from nixpkgs
- "shadow" in nixpkg is not enough for podman - <https://github.com/NixOS/nixpkgs/issues/138423>
```bash
sudo apt-get install --assume-yes uidmap
```
1. Make sure putting /etc/containers/policy.json, it is not a home-manager role
```bash
sudo mkdir -p /etc/containers
cd /etc/containers
sudo curl -OL https://raw.githubusercontent.com/kachick/dotfiles/main/config/containers/policy.json
```
1. Make sure the cgroup v1 is disabled if you on WSL, See [the docs](windows/WSL/README.md)
1. Make sure you can run containers as `podman run public.ecr.aws/debian/debian:12.6-slim cat /etc/os-release`

nix-community/home-manager#4801 (comment) has been merged

This issue might be a following task of #757

@kachick kachick added the enhancement New feature or request label Nov 2, 2024
@kachick
Copy link
Owner Author

kachick commented Jan 6, 2025

Looks like the module also requires uidmap via apt. So I don't have confidence using it makes things simpler than now. https://github.com/nix-community/home-manager/pull/4801/files#diff-05eb87a6abb8c5d69f9b58ca41961c9039d06097eab947dcef54ee61c40520aeR122-R129

@kachick kachick closed this as completed Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant