nix-configs/modules/system/impermanence.nix
2025-07-23 14:24:23 +02:00

22 lines
524 B
Nix

{
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;
};
}