mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 11:39:46 +01:00
de0070c4cf
This represents the first step in migrating `home.file` to support arbitrary absolute paths. This is to allow Home Manager to manage files anywhere, provided the user has sufficient privileges. For example, with this change the configuration home.file."test/one".text = "foo"; home.file."/test/two".text = "foo"; will result in the files "$HOME/test/one" and "/test/two", respectively. Note, a relative file name will still be relative `$HOME`. To allow a reasonable transition between the old and new path handling we introduce the notion of "generation directory layout version". The version is simply a file `version` within the generation directory containing a number indicating the version number. The version 0 (also implied if the version file is missing) indicates the legacy layout where managed file paths always are relative `$HOME`. Version 1 indicates the new layout where managed file paths are relative `/`. |
||
---|---|---|
.. | ||
accounts | ||
config | ||
i18n/input-method | ||
lib | ||
lib-bash | ||
misc | ||
programs | ||
services | ||
targets | ||
default.nix | ||
files.nix | ||
home-environment.nix | ||
manual.nix | ||
modules.nix | ||
systemd-activate.rb | ||
systemd-activate.sh | ||
systemd.nix | ||
xcursor.nix | ||
xresources.nix | ||
xsession.nix |