feat(oci): add podman runtime
This commit is contained in:
parent
de4e01ee10
commit
beff968955
20
global/oci/default.nix
Normal file
20
global/oci/default.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ pkgs
|
||||
, lib
|
||||
, config
|
||||
, ... }: with lib; let
|
||||
cfg = config.global.oci;
|
||||
in {
|
||||
options.global.oci = {
|
||||
enable = mkEnableOption "oci container runtime";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
virtualisation.podman = {
|
||||
enable = true;
|
||||
enableNvidia = with config.global.gui; mkDefault (type == "prime" || type == "nvidia");
|
||||
dockerCompat = true;
|
||||
};
|
||||
|
||||
users.home.persist.directories = [ ".local/share/containers" ];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue