1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-13 10:13:39 +02:00
home-manager/modules
Robert Helgesson de0070c4cf
files: add preliminary support for full paths
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 `/`.
2021-07-27 23:42:51 +02:00
..
accounts himalaya: add module 2021-06-26 18:29:42 -04:00
config Move platform check into modules 2021-07-18 20:43:22 +02:00
i18n/input-method Move platform check into modules 2021-07-18 20:43:22 +02:00
lib trayer: add module (#2177) 2021-07-24 00:29:49 +02:00
lib-bash files: add preliminary support for full paths 2021-07-27 23:42:51 +02:00
misc volnoti: add platform assert 2021-07-24 00:37:06 +02:00
programs programs.neovim: expose generatedConfigViml (#2213) 2021-07-27 15:59:50 +02:00
services barrier: remove tray option (#2215) 2021-07-26 09:16:00 -06:00
targets Move platform check into modules 2021-07-18 20:43:22 +02:00
default.nix modules: don't reference deprecated stdenv.lib (#1770) 2021-02-01 09:52:05 -05:00
files.nix files: add preliminary support for full paths 2021-07-27 23:42:51 +02:00
home-environment.nix files: add preliminary support for full paths 2021-07-27 23:42:51 +02:00
manual.nix Switch to extended Nixpkg's lib 2020-01-21 20:47:04 +01:00
modules.nix trayer: add module (#2177) 2021-07-24 00:29:49 +02:00
systemd-activate.rb Revert "systemd: use sd-switch" 2020-08-04 19:38:14 +02:00
systemd-activate.sh Revert "systemd: use sd-switch" 2020-08-04 19:38:14 +02:00
systemd.nix Remove a few format exceptions 2021-07-18 23:34:50 +02:00
xcursor.nix Move platform check into modules 2021-07-18 20:43:22 +02:00
xresources.nix xresources: Add path configuration option (#2141) 2021-06-28 00:50:40 -06:00
xsession.nix Move platform check into modules 2021-07-18 20:43:22 +02:00