2020-05-09 18:45:10 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
# Improve nix-shell and direnv integration
|
2021-09-29 12:09:36 +02:00
|
|
|
environment.pathsToLink = [ "/share/nix-direnv" ];
|
2020-05-11 06:40:41 +02:00
|
|
|
|
2020-05-11 19:08:09 +02:00
|
|
|
# Set up podman
|
2021-11-23 10:31:12 +01:00
|
|
|
virtualisation = {
|
|
|
|
containers.enable = true;
|
|
|
|
containers.storage.settings.storage = {
|
|
|
|
driver = "zfs";
|
|
|
|
graphroot = "/var/lib/containers/storage";
|
|
|
|
runroot = "/run/containers/storage";
|
|
|
|
};
|
|
|
|
|
|
|
|
oci-containers.backend = "podman";
|
|
|
|
|
|
|
|
podman = {
|
|
|
|
enable = true;
|
|
|
|
dockerCompat = true;
|
|
|
|
extraPackages = with pkgs; [ zfs ];
|
|
|
|
};
|
2020-05-11 19:08:09 +02:00
|
|
|
};
|
2022-09-04 05:33:33 +02:00
|
|
|
|
|
|
|
# Run unpatched binaries with Nix
|
|
|
|
programs.nix-ld.enable = true;
|
2023-03-09 14:37:12 +01:00
|
|
|
|
|
|
|
# Embedded development with PlatformIO
|
|
|
|
services.udev.packages = with pkgs; [ platformio ];
|
2020-05-09 18:45:10 +02:00
|
|
|
}
|