made generic container module
This commit is contained in:
1 parent
ee7931107e
commit
4e13d912b0
11 files changed
+137
-101
No files matched your search
@@ -0,0 +1,11 @@
|
||||
{ user, runtime ? null }:
|
||||
{ pkgs, ... }: {
|
||||
virtualisation.containers.enable = true;
|
||||
environment.systemPackages = with pkgs; [ dive podman-tui ];
|
||||
imports = (if runtime == "podman" then
|
||||
[ (import ./podman.nix { user = user; }) ]
|
||||
else if runtime == "docker" then
|
||||
[ (import ./docker.nix { user = user; }) ]
|
||||
else
|
||||
[ ]);
|
||||
}
|
||||
Reference in new issue
Block a user