refactor
This commit is contained in:
parent
66c05f9093
commit
45d6f4b0f3
205 changed files with 9040 additions and 342 deletions
32
modules/nixos/virtualisation/podman/default.nix
Normal file
32
modules/nixos/virtualisation/podman/default.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{ options, config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
with lib.plusultra;
|
||||
let cfg = config.plusultra.virtualisation.podman;
|
||||
in
|
||||
{
|
||||
options.plusultra.virtualisation.podman = with types; {
|
||||
enable = mkBoolOpt false "Whether or not to enable Podman.";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [ podman-compose ];
|
||||
|
||||
plusultra.home.extraOptions = {
|
||||
home.shellAliases = { "docker-compose" = "podman-compose"; };
|
||||
};
|
||||
|
||||
# NixOS 22.05 moved NixOS Containers to a new state directory and the old
|
||||
# directory is taken over by OCI Containers (eg. podman). For systems with
|
||||
# system.stateVersion < 22.05, it is not possible to have both enabled.
|
||||
# This option disables NixOS Containers, leaving OCI Containers available.
|
||||
boot.enableContainers = false;
|
||||
|
||||
virtualisation = {
|
||||
podman = {
|
||||
enable = cfg.enable;
|
||||
dockerCompat = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue