Skip to content

shutdownRamfs

systemd.shutdownRamfs.contents

Set of files that have to be linked into the shutdown ramfs Type: attribute set of (submodule)

Example

{"/lib/systemd/system-shutdown/zpool-sync-shutdown".source = writeShellScript "zpool" "exec ${zfs}/bin/zpool sync"}

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/system/boot/systemd/shutdown.nix

systemd.shutdownRamfs.contents.<name>.enable

Whether to enable copying of this file and symlinking it. Type: boolean

Default

true

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/system/boot/systemd/shutdown.nix

systemd.shutdownRamfs.contents.<name>.source

Path of the source file. Type: path

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/system/boot/systemd/shutdown.nix

systemd.shutdownRamfs.contents.<name>.target

Path of the symlink.

Type: path

Default

"‹name›"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/system/boot/systemd/shutdown.nix

systemd.shutdownRamfs.contents.<name>.text

Text of the file. Type: null or strings concatenated with "\n"

Default

null

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/system/boot/systemd/shutdown.nix

systemd.shutdownRamfs.enable

Whether to enable pivoting back to an initramfs for shutdown. Type: boolean

Default

true

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/system/boot/systemd/shutdown.nix

systemd.shutdownRamfs.storePaths

Store paths to copy into the shutdown ramfs as well.

Type: list of (optionally newline-terminated) single-line string

Default

[ ]

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/system/boot/systemd/shutdown.nix