meow
This commit is contained in:
parent
93a675c06a
commit
9ca7a8d8f6
20 changed files with 631 additions and 194 deletions
22
modules/system/impermanence.nix
Normal file
22
modules/system/impermanence.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue