{ pkgs, lib, config, ... }: let cfg = config.xyno.impermanence; in { options.xyno.impermanence = { enable = lib.mkEnableOption "erase all your darlings (they hate you anyways)"; extraFiles = lib.mkOption { type = lib.types.listOf lib.types.str; }; extraDirectories = lib.mkOption { type = lib.types.listOf lib.types.str; }; }; config = lib.mkIf cfg.enable { imports = [ ]; # TODO impermanence.extraFiles = cfg.extraFiles; impermanence.extraDirectories = cfg.extraDirectories; }; }