Skip to content

Instantly share code, notes, and snippets.

@psanford
Created July 4, 2020 23:28
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save psanford/2e003497bb2e3ed40dbc07ee3a244b6b to your computer and use it in GitHub Desktop.
Save psanford/2e003497bb2e3ed40dbc07ee3a244b6b to your computer and use it in GitHub Desktop.
Overlay for using podman package and module from unstable channel. Useful if you are on nixos <= 20.03
{ pkgs, ... }:
let
unstable = import <nixos-unstable-small> { };
in {
disabledModules = [
"virtualisation/container-config.nix"
"virtualisation/containers.nix"
"virtualisation/podman.nix"
"virtualisation/nixos-containers.nix"
];
imports = [
<nixos-unstable-small/nixos/modules/virtualisation/container-config.nix>
<nixos-unstable-small/nixos/modules/virtualisation/containers.nix>
<nixos-unstable-small/nixos/modules/virtualisation/nixos-containers.nix>
<nixos-unstable-small/nixos/modules/virtualisation/podman.nix>
];
nixpkgs.overlays = [
(self: super: {
podman = unstable.podman;
podman-unwrapped = unstable.podman-unwrapped;
})
];
virtualisation = {
containers.users = [ "psanford" ];
podman = {
enable = true;
};
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment