1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-03-31 04:04:32 +00:00
This commit is contained in:
Rafael Ledo 2025-03-30 19:36:09 +02:00 committed by GitHub
commit ad1a9ad806
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -59,6 +59,14 @@ in
})
];
# Using this function it is possible to make `home.file` create a
# symlink to a path outside the Nix store. For example, a Home Manager
# configuration containing
#
# `home.file."foo".source = config.lib.file.mkOutOfStoreSymlink ./bar;`
#
# would upon activation create a symlink `~/foo` that points to the
# absolute path of the `bar` file relative the configuration file.
lib.file.mkOutOfStoreSymlink = path:
let
pathStr = toString path;