at 18.09-beta 679 B view raw
1{ config, pkgs, lib, ... }: 2 3with lib; 4let 5 cfg = config.programs.singularity; 6in { 7 options.programs.singularity = { 8 enable = mkEnableOption "Singularity"; 9 }; 10 11 config = mkIf cfg.enable { 12 environment.systemPackages = [ pkgs.singularity ]; 13 systemd.tmpfiles.rules = [ "d /var/singularity/mnt/session 0770 root root -" 14 "d /var/singularity/mnt/final 0770 root root -" 15 "d /var/singularity/mnt/overlay 0770 root root -" 16 "d /var/singularity/mnt/container 0770 root root -" 17 "d /var/singularity/mnt/source 0770 root root -"]; 18 }; 19 20}