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
:String
the flake path as absolute path
-
isThinClient
:Bool
whether the store path should be used instead of the flake path
-
pkgs
:{ ... }
the nixpkgs package set
-
self
:Path
the flake path
-
-
path
:Path
the 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