22 lines
524 B
Nix
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;
|
|
};
|
|
}
|