{ config, lib, ... }: let cfg = config.soispha.tempfiles; in { options.soispha.tempfiles = { enable = lib.mkEnableOption "systemd tempfiles generation"; }; config = lib.mkIf cfg.enable { systemd.tmpfiles.rules = [ # TODO: Find a way to move this file to the lf home manager config. # # This file is needed to trash stuff on the root ('/') temp file system. "d /.Trash 1777 root root" ]; }; }