panacea/modules/development.nix

31 lines
690 B
Nix
Raw Normal View History

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 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;
# Embedded development with PlatformIO
services.udev.packages = with pkgs; [ platformio ];
2020-05-09 18:45:10 +02:00
}