aboutsummaryrefslogtreecommitdiff
path: root/home-manager (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit '6cc4fd6ede4909226cb81d3475834251ed1b7210'Katharina Fey2020-02-03239-3446/+5470
|\
| * Apply `nixfmt` on many filesRobert Helgesson2020-02-021-56/+53
| |
| * home-manager: fix pass-through option passingoxalica2020-01-011-2/+2
| | | | | | | | | | | | | | This resolves, e.g., the errors occurring when passing empty arguments like `--option builders ''`. Closes #967
| * install: add state version to initial configurationRobert Helgesson2019-12-311-0/+10
| | | | | | | | | | | | This sets the state version in recent installs to the latest released version. It is beneficial for people to be aware of this option and it is also good to help new users get a more recent setup.
| * home-manager: add --(no-)substitute optionsRobert Helgesson2019-12-011-1/+3
| | | | | | | | Fixes #312
* | Merge commit '1b987952b5f7d18f0bb66317cf18ffda43ad45aa' into bump-nixpkgsKatharina Fey2019-10-2313-25/+160
|\|
* | Add 'home-manager/' from commit '8bddc1adab0f7a51476f819fa2197353e8e1d136'Katharina Fey2019-10-05279-37/+23432
|/ | | | | | git-subtree-dir: home-manager git-subtree-mainline: 919d4e75699aa4ba456fd2d3d416a0522c9c7294 git-subtree-split: 8bddc1adab0f7a51476f819fa2197353e8e1d136
* home-manager: support `--option` argumentRobert Helgesson2019-08-301-0/+5
| | | | Fixes #784
* home-manager: support a few extra pass-through optionsRobert Helgesson2019-08-261-1/+13
| | | | These options will be passed through to the `nix-build` tool.
* home-manager: exit directly after printing helpRobert Helgesson2019-08-261-0/+1
|
* install: restrict to nix-shellRobert Helgesson2019-08-151-1/+5
| | | | | | | | | This commit adds a "build" command to the install derivation that tells the user that `nix-shell` should be used. A derivation attribute `shellHookOnly = true` is also added with the intent to indicate that the shell hook is the entire point of the derivation.
* home-manager: rewrite argument parsingRobert Helgesson2019-06-092-43/+70
| | | | | | | | | | | This rewrite allows "long options" but unfortunately does not allow merged options such as `-vn`. Also improve the home-manager manual page, with this it should include all sub-commands and arguments. Finally, include the home-manager manual page in the generated HTML documentation.
* files: backup file collisionsJudson2019-06-091-1/+5
| | | | | | | | 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
* home-manager: add Bash completionSam Boosalis2019-06-012-0/+346
|
* home-manager: add uninstall commandRobert Helgesson2019-04-281-11/+75
|
* home-manager: remove unnecessary error messageRobert Helgesson2019-04-101-1/+0
| | | | | An error message about the erroneous option is already printed by `getopts` so there is no need to print it again.
* home-manager: use `callPackage` where appropriatearcnmx2019-04-062-10/+10
|
* Remove some use of `mkDerivation`Robert Helgesson2019-03-181-14/+15
| | | | | | | Instead use `runCommand`, which by default uses `stdenvNoCC` resulting in a reduced dependency footprint. Fixes #612
* home-manager: add edit commandzimbatm2018-12-041-0/+16
| | | | | | | | | | | With this change, running home-manager edit opens `$HOME_MANAGER_CONFIG` in `$EDITOR`. This is mainly for convenience. Users should not have to remember the exact location of the Home Manager configuration.
* Change installation instructions to use nix-channelRobert Helgesson2018-12-041-1/+18
| | | | | | This avoids the uncontrollable nature of fetching the tarball as part of the evaluation. Instead the user can decide when to update and also perform rollbacks, if necessary.
* home-manager: import modules using relative pathWael M. Nasreddine2018-12-041-1/+1
|
* home-manager: add generation expiration commandAlex Brandt2018-10-182-4/+29
| | | | | | | | | | | | This adds a new command to the home-manager shell script that allows generations to be removed that are older than an given absolute or relative date. This allows users to manage the expiration of their home-manager generations separately from their system or user profiles via nix-collect-garbage. It is most important if the user desires to have a convenient way to have different expiration times for Home Manager generations than other system or user profiles.
* home-manager: enable build output during switchRobert Helgesson2018-08-281-2/+1
| | | | Fixes #352
* Avoid substitution for some derivationsRobert Helgesson2018-07-311-0/+2
| | | | | | | | 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
* home-manager: fix work directory when building generationRobert Helgesson2018-07-311-0/+2
|
* home-manager: fix GC issueRobert Helgesson2018-07-311-26/+32
| | | | | | | | | | | | It was previously possible to create the news information and lose it in a Nix GC before being able to view it. This also causes a switch to error out. This change makes the news information a root in the garbage collector. Note, this change also removes the need for `nix eval` so the `doBuildAttr` function is simplified accordingly. Fixes #327
* home-manager: resolve default configuration file pathRobert Helgesson2018-07-121-1/+1
| | | | | | | | | | Home Manager needs an absolute and resolved path to its configuration file. The default configuration path is absolute but not necessarily resolved. For example, some users may have `~/.config` be a symbolic link to somewhere else. We therefore run the default configuration path through the `realpath` tool to resolve it. Fixes #304
* home-manager: add support for the nix toolRobert Helgesson2018-07-081-16/+61
| | | | | | This adds an experimantal, undocumented, and unsupported flag `-2` for the `home-manager` command that enables the use of the new `nix` command instead of `nix-build`.
* home-manager: colorize only when connected to terminalRobert Helgesson2018-03-031-1/+7
| | | | | Before, the output of `home-manager generations` would be colorized even when used in a pipeline.
* home-manager: switch NIX_PATH orderRobert Helgesson2018-01-281-1/+1
| | | | | This new order allows overriding the home-manager path from the command line using `home-manager -I home-manager=/a/b/c`.
* home-manager: add shellcheck directivesRobert Helgesson2018-01-271-0/+6
|
* home-manager: improve the generation timestamp formatRobert Helgesson2018-01-271-2/+2
|
* home-manager: check whether a command is passedMario Rodas2018-01-221-0/+5
| | | | | "set -u" treats unset variables as an error, and $1 is unbound when no command is passed.
* home-manager: use `shellHook` to installRobert Helgesson2017-11-291-0/+37
| | | | | | | | | | | | | This changes the installation command from nix-shell $HM_PATH -A install --run 'home-manager switch' to nix-shell $HM_PATH -A install The added shell hook will print some useful information and run `home-manager switch`.
* home-manager: look for '--help' on command lineRobert Helgesson2017-11-121-0/+9
| | | | | This is a special case to work around the lack of long options in `getopts`.
* home-manager: add 'remove-generations' commandRobert Helgesson2017-11-121-1/+48
| | | | | This command allows the user to immediately remove specific generations from the profiles directory.
* home-manager: minor cleanup output from generationsRobert Helgesson2017-11-121-1/+2
|
* use `buildCommand` for single phase buildsCornelius Mika2017-11-061-3/+1
|
* home-manager: refuse build if CWD is read-onlyRobert Helgesson2017-11-051-0/+5
| | | | | | This produces a clearer error message than produced by Nix. Fixes #116.
* home-manager: avoid import to improve error messagesRobert Helgesson2017-11-021-4/+3
| | | | | | When using `import` to inject the configuration into the module system we lose the location in error messages, i.e., it just says ``<unknown-file>'`.
* home-manager: use XDG configuration directoryRobert Helgesson2017-10-291-3/+4
|
* fix typoSilvan Mosberger2017-10-241-1/+1
|
* home-manager: point <home-manager> to project rootRobert Helgesson2017-10-243-17/+16
| | | | | | | | | | | | | | | Before this path would point to the modules path. Using the project root instead makes it possible to set `<home-manager>` to point to a downloadable archive of Home Manager. This should make it significantly easier to install and keep Home Manager up to date. To match this change we also deprecate the Home Manager option programs.home-manager.modulesPath and instead ask users to use programs.home-manager.path
* home-manager: fix typoRuben Maher2017-10-221-1/+1
|
* home-manager: change platforms to `unix`Robert Helgesson2017-10-181-1/+1
|
* home-manager: add license fieldRobert Helgesson2017-10-161-0/+1
|
* home-manager: present news even if assertion failedRobert Helgesson2017-09-091-7/+17
|
* home-manager: minor news build cleanupsRobert Helgesson2017-09-061-4/+11
| | | | | | | | - Rename the build function. - Specify the built attribute in the build function. - Make the news build silent.
* home-manager: add news sub-commandRobert Helgesson2017-09-053-13/+185
| | | | | | | | This command allows the user to examine the news items generated by the news module. See #52. Many thanks to @nonsequitur and @uvNikita for suggestions and improvements.
* home-manager: make sure switch generation is GC rootRobert Helgesson2017-09-041-2/+12
| | | | | | | Using `--no-out-link` is convenient but it does not set up a GC root, so an unfortunately timed GC could remove the generation before activation completes. Many thanks to @nonsequitur for noting this problem.