aboutsummaryrefslogtreecommitdiff
path: root/modules/lib-bash (follow)
Commit message (Collapse)AuthorAgeFilesLines
* home-manager: respect NIX_STATE_DIRDmitry Kalinkin2020-06-141-2/+3
| | | | | | This allows to install home-manager on a system without root access. PR #1196
* home-manager: add activation sanity check of NixRobert Helgesson2020-05-201-0/+5
| | | | | | | | This adds an empty `nix-build` command to verify that the user is having a good Nix install. It also, as a side effect, will create the necessary per-user `profiles` and `gcroots` directories. Fixes #1246
* home-manager: use `nix-env` to list generationsRobert Helgesson2020-05-161-16/+12
| | | | | | | | | | | | Using the `nix-env` command is far more robust. It also has the benefit that if the per-user `profiles` and `gcroots` directories do not exist then they will be created with the correct permissions. Because of the second point this commit also removes the `mkdir` step of the installation instructions. PR #1239 Closes #474, #948, #1091
* activation-init: sanity check oldGenNum and oldGenPathRobert Helgesson2018-03-131-6/+21
| | | | | Something is terribly wrong if one is set but not the other so error out with a message if that happens.
* home-environment: use nix-env from PATHRobert Helgesson2018-02-271-0/+7
| | | | | | | | | | It is safest to use the system install of Nix since that will be compatible with the running nix-daemon and/or databases. Also add a printout of the used Nix version in the activation script when running in verbose mode. Fixes #218.
* lib-bash: always print message announcing a dry runCornelius Mika2017-08-211-1/+1
|
* Credit original source for shell color codeRobert Helgesson2017-05-141-0/+3
|
* home-environment: colorize activation output slightlyRobert Helgesson2017-05-142-0/+95