feat(imxyy-nix): use distrobox
This commit is contained in:
@@ -5,5 +5,6 @@
|
|||||||
./home.nix
|
./home.nix
|
||||||
./virt.nix
|
./virt.nix
|
||||||
./net.nix
|
./net.nix
|
||||||
|
./podman.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
35
config/hosts/imxyy-nix/podman.nix
Normal file
35
config/hosts/imxyy-nix/podman.nix
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
username,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
virtualisation.podman = {
|
||||||
|
enable = true;
|
||||||
|
dockerCompat = true;
|
||||||
|
dockerSocket.enable = true;
|
||||||
|
};
|
||||||
|
users.users.${username}.extraGroups = [ "podman" ];
|
||||||
|
environment.systemPackages = [ pkgs.distrobox ];
|
||||||
|
my.hm.programs.distrobox = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
container_image_default = "docker.io/archlinux:latest";
|
||||||
|
};
|
||||||
|
containers = {
|
||||||
|
archlinux = {
|
||||||
|
image = "archlinux:latest";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
my.hm.programs.zsh.initContent = lib.mkBefore ''
|
||||||
|
if [ -n "''${CONTAINER_ID+1}" ]; then
|
||||||
|
export ZSH_DISABLE_COMPFIX=true
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
my.persist.homeDirs = [
|
||||||
|
".config/containers"
|
||||||
|
".local/share/containers"
|
||||||
|
];
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user