mkSymlink
Source: src/mkSymlink.nix
Type: (hostArgs : { ... }) -> Path -> { ... }
Arguments:
-
hostArgs:{ ... }The arguments passed into each file managed by
mkHosts. It must contain the following attributes:-
flakePath:Stringthe flake path as absolute path
-
isThinClient:Boolwhether the store path should be used instead of the flake path
-
pkgs:{ ... }the nixpkgs package set
-
self:Paththe flake path
-
-
path:Paththe path to the file you want to symlink
Result:
This function is used to create a symlink.
Specifically, this function creates the following set:
{
recursive = true;
source = <drv>;
}
Usage inside files managed by mkHosts:
This function is configured by the mkHosts function to be used in a more convenient way:
mkSymlink ./path/to/file