Added podman

This commit is contained in:
vanten-s 2024-05-08 13:12:51 +02:00
parent 0d976ace8e
commit f34d26332e
Signed by: vanten-s
GPG key ID: DE3060396884D3F2
2 changed files with 22 additions and 5 deletions

View file

@ -92,10 +92,23 @@ in {
# Allow unfree packages # Allow unfree packages
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
virtualisation.docker.enable = true; # virtualisation.docker.enable = true;
virtualisation.docker.rootless = { # virtualisation.docker.rootless = {
enable = true; # enable = true;
setSocketVariable = true; # setSocketVariable = true;
# };
virtualisation.containers.enable = true;
virtualisation = {
podman = {
enable = true;
# Create a `docker` alias for podman, to use it as a drop-in replacement
dockerCompat = true;
# Required for containers under podman-compose to be able to talk to each other.
defaultNetwork.settings.dns_enabled = true;
};
}; };
# List packages installed in system profile. To search, run: # List packages installed in system profile. To search, run:
@ -150,6 +163,9 @@ in {
wl-clipboard wl-clipboard
home-manager home-manager
file file
dive # look into docker image layers
podman-tui # status of containers in the terminal
podman-compose # start group of containers for dev
(epsonscan2.override { withNonFreePlugins = true; }) (epsonscan2.override { withNonFreePlugins = true; })
]; ];

View file

@ -15,6 +15,7 @@ compinit
export TERM="xterm" export TERM="xterm"
# Shorthands # Shorthands
alias ls='ls --color=yes'
alias l='ls -l' alias l='ls -l'
alias la='ls -a' alias la='ls -a'
alias ll='ls -la' alias ll='ls -la'