aboutsummaryrefslogtreecommitdiff
path: root/home-manager (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.
* home-manager: print errors to stderrRobert Helgesson2017-09-011-5/+9
|
* home-manager: remove escapingNikita Uvarov2017-08-281-1/+1
| | | | | The Nix code that was extracted to its own file erroneously included escaping of "${".
* home-manager: move Nix code to own fileRobert Helgesson2017-08-282-19/+16
|
* home-manager: minor attribute renameRobert Helgesson2017-08-272-2/+2
| | | | | The "activation-script" attribute doesn't actually point directly at the activation script. Renamed the attribute to be more descriptive.
* home-manager: simplify use of nix-build outputRobert Helgesson2017-08-271-27/+5
| | | | | | | There is no need to specify an out link when switching to a new generation since nix-build prints the store path on standard output. Similarly, when just building a generation we specify no out link since nix-build will use "result" by default.
* home-manager: show full script path on activation errorCornelius Mika2017-08-201-1/+2
| | | | | | Run the activation script in its original nix-store location so that Bash error messages show the real script location instead of 'wrkdir', which gets deleted right after the script exits.
* home-manager: exit with an error on build failureCornelius Mika2017-08-201-3/+5
| | | | | | | Because 'set -e' has no effect on commands that run in an if condition, the script was always exiting with no error when 'doBuild' failed. As a bonus, $wrkdir is now always removed after building.
* home-manager: add config file attributeCornelius Mika2017-08-182-3/+14
|
* home-manager: allow a user-defined third module pathRobert Helgesson2017-07-112-2/+11
| | | | | | The user-defined path will be used if present, otherwise the two "fallback" defaults (in `.nixpkgs` and `.config/nixpkgs`) will be used.
* home-manager: remove unnecessary variable settingRobert Helgesson2017-07-111-2/+0
| | | | | The `NIX_PATH` variable is set by the `setHomeManagerModulesPath` function so it is unnecessary to set it again.
* home-manager: support `.config` configuration pathRobert Helgesson2017-06-032-26/+52
| | | | | | | | | | | | This commit changes the default path of the Home Manager configuration file from `~/.nixpkgs/home.nix` to `~/.config/nixpkgs/home.nix`. The old path is still supported and will be used if the `.config` path does not exist. This aligns Home Manager with the preferred configuration directory in NixOS 17.03. Fixes #13.
* home-manager: use `NIX_PATH` to locate modulesRobert Helgesson2017-06-032-3/+4
| | | | | | | This removes the old argument based method that Home Manager used to find its modules by a `NIX_PATH` based method. Specifically, this adds a `home-manager` Nix path prefix that can be overridden much like with the `nixpkgs` path prefix.
* home-manager: add coreutils to PATHChristopher League2017-05-162-0/+6
| | | | | This ensures that we use the expected version of some useful tools, such as readlink.
* home-manager: use strict Bash evaluationRobert Helgesson2017-05-141-0/+3
| | | | | In particular, this will ensure that the whole script fails with an error code if the activation script fails during a switch. Fixes #10.
* Use stricter Bash settings in activation scriptRobert Helgesson2017-03-251-1/+1
| | | | | | For example, with these settings Bash will complain if uninitialized variables are used. Some code has been improved to run cleanly with these settings.
* home-manager: Use --show-trace only when verboseRobert Helgesson2017-02-211-1/+5
|
* home-manager: add command line option `-I`Robert Helgesson2017-02-141-2/+13
| | | | | This options is passed on to nix-build and allows, for example, building a user environment using a custom Nixpkgs.
* Add configurable verbosity during activationRobert Helgesson2017-01-211-1/+5
|
* home-manager: handle missing configuration fileRobert Helgesson2017-01-161-0/+5
| | | | Make it look a little nicer than having nix-build emit the error.
* home-manager: improve command line option handlingRobert Helgesson2017-01-161-8/+41
|
* home-manager: improve error checking a bitRobert Helgesson2017-01-151-0/+9
|
* home-manager: check output pathRobert Helgesson2017-01-151-0/+5
| | | | In particular, error out if the output path already exists.
* home-manager: clean up usage helpRobert Helgesson2017-01-151-7/+6
|
* home-manager: rename `rebuild` to `switch`Robert Helgesson2017-01-151-4/+4
|
* home-manager: add `build` commandRobert Helgesson2017-01-151-11/+26
| | | | | This will build a configuration into an `result` output directory. Does not create a new generation.
* home-manager: improve robustnessRobert Helgesson2017-01-151-8/+8
| | | | | With this commit the activation script is run only if nix-build succeeded.
* home-manager: make modules path more configurableRobert Helgesson2017-01-152-2/+3
|
* home-manager: minor Bash code fixesRobert Helgesson2017-01-151-1/+2
|
* Use a generation directoryRobert Helgesson2017-01-151-4/+6
| | | | | Before we put only user files in the generation directory but that was quite limiting. In particular, we lost track of the activation script.
* home-manager: use absolute path to configurationRobert Helgesson2017-01-151-1/+4
| | | | | | Nix needs an absolute path and the user may have given a relative path for the configuration file. We therefore need to expand it using the `realpath` tool.
* home-manager: handle missing `home-manager-path`Robert Helgesson2017-01-151-1/+5
| | | | | When listing packages we have to handle the case where the rebuild command has not yet been run.
* Initial importRobert Helgesson2017-01-142-0/+101