add files
This commit is contained in:
parent
919f3ba969
commit
d3ff717341
6 changed files with 122 additions and 58 deletions
24
options/common/file.nix
Normal file
24
options/common/file.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
options.device.files = {
|
||||
symlink = lib.mkOption {
|
||||
default = { };
|
||||
type = lib.types.attrsOf lib.types.str;
|
||||
};
|
||||
|
||||
source = lib.mkOption {
|
||||
default = { };
|
||||
type = lib.types.attrsOf lib.types.path;
|
||||
};
|
||||
|
||||
force = lib.mkOption {
|
||||
default = { };
|
||||
type = lib.types.attrsOf lib.types.bool;
|
||||
};
|
||||
|
||||
mkForce = lib.mkOption {
|
||||
default = { };
|
||||
type = lib.types.attrsOf lib.types.bool;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in a new issue