| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
The xlibs attribute set is deprecated and is an alias for xorg.
PR #1304
|
|
|
|
| |
PR #1236
|
|
|
|
| |
PR #1241
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
PR #1211
|
|
|
|
|
|
| |
Enabling this flag for a `home.file` entry causes the target to be
unconditionally overwritten. The option is not visible in
documentation for now and shouldn't be relied on for general use.
|
| |
|
|
|
|
|
|
|
|
|
| |
This change makes use of the `extend` function inside `lib` to inject
a new `hm` field containing the Home Manager library functions. This
simplifies use of the Home Manager library in the modules and reduces
the risk of accidental infinite recursion.
PR #994
|
|
|
|
|
|
|
|
|
|
|
| |
In the case where `/nix` is a link, for example, on macOS Catalina,
`builtins.storeDir` returns `/nix`, not the canonical location.
This causes tests on existing files to result in Home Manager thinking
those files are outside of the store.
This change uses `readlink` on the store path so that the tests work
as intended.
|
| |
|
|
|
|
|
|
|
|
| |
When a configuration file would be written to an existing file, rather
than failing switch (and having the user have to move or delete those
files), move the files automatically to a new path.
Closes #585
|
|
|
|
|
|
|
|
|
|
|
| |
Add parens to expression so the `-exec` includes files matching both.
Otherwise (before this change) the `-exec` is only invoked for
links (`-type l`):
file or (link -> doexec)
=>
(file or link) -> doexec
|
| |
|
|
|
|
|
|
|
| |
Instead use `runCommand`, which by default uses `stdenvNoCC` resulting
in a reduced dependency footprint.
Fixes #612
|
|
|
|
|
|
|
| |
In particular support source files whose name start with `.` or
contain characters not allowed in the nix store, such as spaces.
Also add some test cases for `home.file`.
|
|
|
|
|
|
|
|
| |
In particular, don't bother attempting to do substitution of the home
files and home generation derivations since these rarely, if ever,
could be substituted.
Fixes #330
|
|
|
|
|
|
| |
This option allows execution of arbitrary shell code when a file that
is linked into the home directory has been changed between
generations.
|
|
|
|
| |
Also replace all imports of `dag.nix` by the entry in `config.lib`.
|
| |
|
|
|
|
| |
Check for prefix instead of inclusion.
|
|
|
|
|
| |
This option was deprecated >1 month ago and is therefore removed as
per the corresponding news entry.
|
| |
|
|
|
|
|
|
|
| |
Specifically, move the cleanup phase to before we switch over the
generation links in `gcroots` and `profiles`.
Fixes https://github.com/rycee/home-manager/issues/134
|
|
|
|
|
|
|
|
|
|
|
|
| |
Unfortunately systemd derives nonsensical unit names when the unit
file is a link to a link to a file. This commit ensures that any file
whose target path matches the pattern `*/systemd/user/*` will be
reachable with only one link hop.
This also reverts f52ec0df7c00a2d3938091f3d72641d023385878, which
contained a temporary fix. This commit is an improvements in that it
is more explicit and also handles unit files given directly as a home
file source.
|
| |
|
|
|
|
|
|
| |
The cleanup script now takes relative paths as arguments, not absolute
paths into the old generation. This uses a GNU specific feature of
find.
|
| |
|
| |
|
|
|
|
|
| |
Only copy files that need their execute bit changed or use the
deprecated `mode` option.
|
| |
|
|
|
|
|
| |
Also improve the pattern used to determine whether a symlink target
points to a Home Manager file path.
|
|
|
|
|
| |
This also deprecates the `home.file.<name?>.mode` option, which is
misleading because the Nix store only allows modes 'r--' and 'r-x'.
|
|
|
|
|
|
|
|
|
| |
By sanitizing the home file name in the derivation name, the home file
name is no longer exposed to the naming restrictions for nix store
paths.
For example, it is now possible to define home files with spaces in
their names without providing a target or source attribute.
|
| |
|
| |
|
|
|