aboutsummaryrefslogtreecommitdiff
path: root/home-manager (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit '9b1b55ba0264a55add4b7b4e022bdc2832b531f6'Kaiden Fey2020-09-21318-2627/+12918
|\
| * home-manager: remove home-manager-path on uninstallRobert Helgesson2020-08-141-0/+1
| | | | | | | | Fixes #1443
| * home-manager: respect NIX_STATE_DIRDmitry Kalinkin2020-06-141-5/+7
| | | | | | | | | | | | This allows to install home-manager on a system without root access. PR #1196
| * Deprecate use of `builtins.getEnv`Robert Helgesson2020-05-261-1/+18
| | | | | | | | | | | | | | This removes the use of the non-deterministic function `builtins.getEnv` for state version ≥ 20.09. PR #1269
| * home-manager: allow unspecified `confAttr`Matthew Bauer2020-05-211-2/+2
| | | | | | | | PR #1255
| * Update documentation for release 20.03Robert Helgesson2020-04-231-1/+1
| |
| * home-manager: remove unsupported `-2` optionRobert Helgesson2020-04-181-54/+20
| | | | | | | | | | | | | | This option used to make the `home-manager` command use the `nix` tool from Nix 2. Unfortunately the `nix` tool is a bit experimental and it is best to await its stabilization before supporting it in Home Manager.
| * home-manager: fix shellcheck warningRobert Helgesson2020-04-181-1/+1
| |
| * home-manager: add instantiate subcommandTimo Kaufmann2020-03-252-2/+29
| | | | | | | | | | | | | | | | It can be useful to simply instantiate a Home Manager configuration without actually building it, for example for the purpose of pre-building it with some custom command. PR #1099
| * home-manager: handle args with spaces to doBuildAttrChris Hodapp2020-02-241-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | Presently, if you pass an argument with spaces in it to `doBuildAttr`, it will be split it into multiple arguments to `nix build` or `nix-build`. This situation arises, for example, on systems with spaces in `XDG_DATA_HOME`. Specifically, the `home-manager` script errors out in trying to address the `read-news` state file. With this change, argument separation should be preserved properly in `doBuildAttr`. PR #1044
| * home-manager: make sure all files are uninstalledRobert Helgesson2020-02-151-1/+1
| | | | | | | | | | | | | | This forces the `home.file` option to be completely empty when switching to the uninstall configuration. This is necessary to guard against files are added by default in Home Manager, such as `$XDG_CACHE_HOME/.keep`.
* | 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.