saccarosium
38463b15ec
darwin-rebuild: fixing logic error in if statement
2022-12-08 10:00:51 +01:00
saccarosium
da843c0dde
darwin-rebuild: use --no-link
for flake builds
2022-12-08 09:48:45 +01:00
LightQuantum
184f30c864
Fix darwin rebuild fails with flake and dry-run
2022-10-10 20:24:46 +08:00
Malo Bourgon
1da877d28c
Add -H
to sudo nix-env [...]
to deal with warning
...
After NixOS/nix#6676 , the following warning is displayed when running
`darwin-rebuild switch`:
warning: $HOME ('/Users/jamie') is not owned by you, falling back to the
one defined in the 'passwd' file.
2022-08-29 11:59:54 -07:00
Domen Kožar
4fdbb8168f
Merge pull request #340 from hauleth/fix/use-short-hostname
...
Use short hostname as flake attribute name
2022-03-26 07:11:11 +00:00
Sandro Stikić
ae73fc3b03
Don't reset experimental features
2022-02-04 16:16:08 +08:00
Daiderd Jordan
44da835ac4
add forward compatibility for literalExample deprecation
...
Fixes #367
2021-10-23 15:06:42 +02:00
Łukasz Niemier
de4239f97c
fix: use short hostname as flake attribute name
2021-07-09 10:12:23 +02:00
Martin Hardselius
1f8eb9b128
Add nix flags to subcommand test
...
This change removes the need for having
experimental-features = nix-command flakes
in nix.conf. It should also work outside of flake directories.
2021-03-23 09:49:47 +01:00
Martin Hardselius
4187519820
Make nix flake info fix backwards compatible
...
This change handles previous nix versions by testing for the presence of
the `metadata` subcommand and falling back on the `info` subcommand if
it does not exist.
2021-03-22 22:17:48 +01:00
Martin Hardselius
93752a83ea
Fix nix flake info error
...
Fixes "error: 'info' is not a recognised command'"
Issue: #307
2021-03-21 23:54:10 +01:00
Daiderd Jordan
8800c4717d
always prefix flake with darwinConfigurations
2020-10-21 18:30:57 +02:00
Daiderd Jordan
c8b38819b4
handle --print-build-logs for flakes
2020-10-21 18:30:57 +02:00
Daiderd Jordan
e4c3940e2d
add --impure flag for flakes
2020-10-21 18:30:57 +02:00
Daiderd Jordan
d865c6ae4c
add example flake and support --flake in darwin-rebuild
2020-10-21 18:30:57 +02:00
Daiderd Jordan
590e9c872a
darwin-rebuild: allow empty arguments
...
The wrapper already handles whitespace properly and empty values are
useful for certain flags like --option builders ''.
2020-02-03 22:49:46 +01:00
Daiderd Jordan
bbedef2143
darwin-rebuild: fix check
2019-07-01 22:42:44 +02:00
Daiderd Jordan
7aa0ad23f4
darwin-rebuild: fix activate without an existing profile
2019-06-05 23:23:59 +02:00
Daiderd Jordan
24089a93d7
darwin-rebuild: add activate command
...
This command activates the current system again, mostly useful when the
system was built on another host and substituted.
2019-06-05 22:59:23 +02:00
Daiderd Jordan
ae58eb80d2
nix-script: remove
2019-06-05 21:45:47 +02:00
Daiderd Jordan
3c4a001d99
nixos-rebuild: change default editor to vi
2019-06-05 21:45:47 +02:00
Daiderd Jordan
71c68087e8
darwin-rebuild: fix quoting
2019-06-05 21:45:46 +02:00
Daiderd Jordan
2cda9f7113
darwin-option: add support for -I
2019-05-01 13:26:04 +02:00
Daiderd Jordan
d00d00998e
darwin: replace usages of nix-instantiate --eval with --find-file
2019-02-24 22:27:41 +01:00
Daiderd Jordan
958ebb7966
darwin-rebuild: don't run nix-build for edit
2018-08-03 20:16:43 +02:00
zimbatm
a25d345a7e
darwin-rebuild edit
...
As a user I don't want to remember where the configuration exists. This
adds a command that will point the $EDITOR to the <darwin-config> file.
darwin-rebuild edit
2018-08-03 15:13:42 +01:00
Daiderd Jordan
a8847b28e7
darwin-option: improve default/example printing
2018-03-29 22:34:35 +02:00
Daiderd Jordan
6ea3f405e8
darwin-rebuild: add --list-generations flag
2017-10-20 21:45:31 +02:00
Daiderd Jordan
b7e4b03bee
darwin: add changelog command
2017-07-24 23:12:07 +02:00
Daiderd Jordan
79b180249a
darwin: add check as command for darwin-rebuild
2017-07-24 23:12:07 +02:00
Daiderd Jordan
6d91e5b565
darwin: add --check flag
2017-07-23 18:02:08 +02:00
Daiderd Jordan
32bfad7cc6
darwin-rebuild: add support for --rollback and --switch-generation
2017-05-15 21:16:09 +02:00
Chris Hodapp
8637e7a92f
Better no-args darwin-options output
...
There isn't a man page and it's useful to print out the list of
top-level keys.
2017-05-12 00:34:49 -07:00
Daiderd Jordan
c7d92b852e
darwin-rebuild: run user activation first
...
Some of the activation scripts use /run/current-system as a reference
for things that should be removed. The symlink is updated by the system
activation script thus it should run last.
2017-05-11 21:36:57 +02:00
Daiderd Jordan
c363720616
lnl: update vim ycm/pymode settings
2017-04-13 07:32:07 +02:00
Daiderd Jordan
258cda10ce
darwin-rebuild: keep result symlink when running build
2017-03-04 20:00:23 +01:00
Daiderd Jordan
57c0c8a112
allow -j4 style flag for darwin-rebuild and the nix wrapper
2017-01-24 21:47:34 +01:00
Daiderd Jordan
40eb4254d5
nix-script: add nix-env operations
2017-01-20 23:31:42 +01:00
Daiderd Jordan
77f947c0dc
darwin-rebuild: add --keep-going
2017-01-10 21:41:18 +01:00
Daiderd Jordan
a85194aa33
nix-script: fix shell -p
2017-01-02 08:19:22 +01:00
Daiderd Jordan
89daf6bf9e
nix-script: improve expresions
2016-12-28 01:18:50 +01:00
Daiderd Jordan
ba674c8bb4
nix-script: don't add src for all commands
2016-12-27 20:51:34 +01:00
Daiderd Jordan
563a2b35b7
nix-script: rename
2016-12-27 20:30:13 +01:00
Daiderd Jordan
a40eb003e1
nix-script: improve commands with and expression
2016-12-27 20:28:25 +01:00
Daiderd Jordan
3ec1300c67
nix-script: resolve drv path
2016-12-26 23:55:23 +01:00
Daiderd Jordan
bc5fc1af32
add nix-script
2016-12-26 23:34:09 +01:00
Daiderd Jordan
44fc4d4010
add --dry-run to darwin-rebuild help
2016-12-22 23:27:29 +01:00
Daiderd Jordan
303d5fa2c4
enable --dry-run for darwin-rebuild
2016-12-22 23:25:32 +01:00
Daiderd Jordan
f317db6bf4
implement darwin-rebuild flags
2016-12-20 00:05:36 +01:00
Daiderd Jordan
68ffdbeb37
add darwin-option example to readme
2016-12-15 22:03:06 +01:00