diff --git a/options.xhtml b/options.xhtml index 1c7e30d19..e0e50b762 100644 --- a/options.xhtml +++ b/options.xhtml @@ -80820,6 +80820,215 @@ boolean

+
+ + xdg.stateFile + + +
+
+

Attribute set of files to link into the user’s XDG +state home.

+ +

Type: +attribute set of (submodule)

+ +

Default: +{ }

+ +

Declared by:

+ + +
+ +<home-manager/modules/misc/xdg.nix> + +
+
+
+ + xdg.stateFile.<name>.enable + + +
+
+

Whether this file should be generated. This option allows specific +files to be disabled.

+ +

Type: +boolean

+ +

Default: +true

+ +

Declared by:

+ + +
+ +<home-manager/modules/misc/xdg.nix> + +
+
+
+ + xdg.stateFile.<name>.executable + + +
+
+

Set the execute bit. If null, defaults to the mode +of the source file or to false +for files created through the text option.

+ +

Type: +null or boolean

+ +

Default: +null

+ +

Declared by:

+ + +
+ +<home-manager/modules/misc/xdg.nix> + +
+
+
+ + xdg.stateFile.<name>.onChange + + +
+
+

Shell commands to run when file has changed between +generations. The script will be run +after the new files have been linked +into place.

Note, this code is always run when recursive is +enabled.

+ +

Type: +strings concatenated with “\n”

+ +

Default: +""

+ +

Declared by:

+ + +
+ +<home-manager/modules/misc/xdg.nix> + +
+
+
+ + xdg.stateFile.<name>.recursive + + +
+
+

If the file source is a directory, then this option +determines whether the directory should be recursively +linked to the target location. This option has no effect +if the source is a file.

If false (the default) then the target +will be a symbolic link to the source directory. If +true then the target will be a +directory structure matching the source’s but whose leafs +are symbolic links to the files of the source directory.

+ +

Type: +boolean

+ +

Default: +false

+ +

Declared by:

+ + +
+ +<home-manager/modules/misc/xdg.nix> + +
+
+
+ + xdg.stateFile.<name>.source + + +
+
+

Path of the source file or directory. If +xdg.stateFile.<name>.text +is non-null then this option will automatically point to a file +containing that text.

+ +

Type: +path

+ +

Declared by:

+ + +
+ +<home-manager/modules/misc/xdg.nix> + +
+
+
+ + xdg.stateFile.<name>.target + + +
+
+

Path to target file relative to <varname>xdg.stateHome</varname>.

+ +

Type: +string

+ +

Default: +name

+ +

Declared by:

+ + +
+ +<home-manager/modules/misc/xdg.nix> + +
+
+
+ + xdg.stateFile.<name>.text + + +
+
+

Text of the file. If this option is null then +xdg.stateFile.<name>.source +must be set.

+ +

Type: +null or strings concatenated with “\n”

+ +

Default: +null

+ +

Declared by:

+ + +
+ +<home-manager/modules/misc/xdg.nix> + +
+
xdg.stateHome