Commit Graph

12 Commits

Author SHA1 Message Date
e-nikolov f9041d12a9
home-manager: fix some completions commands 2023-09-10 11:35:41 +02:00
Robert Helgesson c8cb60b8a1
home-manager: add `init` command to main tool
The init command is essentially the old install script but integrated
into the home-manager tool. This simplifies things slightly since we
can use the existing code infrastructure.

The init command is Nix flake aware in the sense that, if we detect
that the user's Nix setup supports flakes, then we also create an
initial `flake.nix` file.

Finally, we update the installation instructions for the Nix flakes
standalone setup to use the new init command.

Zsh completion update provided by Anund <anundm@gmail.com>.
2023-03-15 22:47:04 +01:00
Bernardo Meurer 6d2ba4654d
home-manager: pass --refresh to nix (#3624)
This flag is useful to force Nix to re-fetch cached flakes. Without it,
you cannot deploy from a non-local flake in quick succession, since the
caching causes the flake to not be re-fetched.
2023-02-05 11:14:03 +01:00
Anders Kaseorg c55fa26ce0
home-manager: pass -L/--print-build-logs to nix build
When building from a flake, `nix build` hides the build output by
default, with a `-L`/`--print-build-logs` option to show it. Pass this
option along from `home-manager` if the user provides it.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2022-12-25 12:09:29 +01:00
Shamrock Lee 50204cea94
completion.*: add flake-related arguments 2022-02-15 22:47:41 +01:00
Robert Helgesson adaea605db
home-manager: document the `--version` command option
Fixes #2604
2022-01-02 08:33:32 +01:00
c4605 1a6df903e3
home-manager: add command line argument `--impure` 2021-08-19 00:07:49 +02:00
Timur Demin d11afee973
home-manager: allow remote builders for nix-build (#2268)
This allows running home-manager with --builders option passed through
to nix-build, which will then pass build execution to remote builders on
other machines.

This may be useful with relatively complex home-manager configurations
where building on a local machine is not feasible.
2021-08-17 16:53:44 -04:00
Sandro Jäckel 5f6364fc28
home-manager: add `--no-out-link` command line option
When this option is used then `home-manager build` will not produce a
`result` link in the current working directory.
2021-07-29 16:04:41 +02:00
Dusk Banks 63af2d3e4c
home-manager: add `home-manager option`
This adds functionality much like that provided by `nixos-option`.
2021-06-15 23:46:45 +02:00
bb010g 5eb199e937
home-manager: pass on `--debug` option (#2049)
* man-home-manager: remove trailing whitespace

* home-manager: pass on `--debug` option
2021-06-05 16:11:06 -06:00
Anund 68dfc86173
home-manager: add zsh completion
Fixes #1075
2021-01-03 10:13:46 +01:00