shell: rename rebuild to flk

This commit is contained in:
Timothy DeHerrera 2020-12-25 22:14:56 -07:00
parent 42e02c08d6
commit 94de0921e6
No known key found for this signature in database
GPG Key ID: 8985725DB5B0C122
3 changed files with 7 additions and 7 deletions

2
DOC.md
View File

@ -2,7 +2,7 @@
Module declarations dependant on particular machines should be stored in the
[hosts](hosts) directory. Every file in this directory will be added automatically
to the the `nixosConfigurations` flake output and thus becomes deployable via
`nixos-rebuild` and `rebuild`.
`nixos-rebuild` and `flk`.
See [`hosts/default.nix`](hosts/default.nix) for the implementation.

View File

@ -65,11 +65,11 @@ You'll probably at least need to setup your `fileSystems` and make sure the
Once you're ready to deploy you can use `nixos-rebuild` if your NixOS version
is recent enough to support flakes, _or_ the [shell.nix](./shell.nix) defines
its own `rebuild` command in case you need it.
its own `flk` command in case you need it.
```
# Usage: rebuild host {switch|boot|test|iso}
rebuild <host-filename> test
# Usage: flk host {switch|boot|test|iso}
flk <host-filename> test
```
## Build an ISO
@ -78,7 +78,7 @@ You can make an ISO and customize it by modifying the [niximg](./hosts/niximg.ni
file:
```sh
rebuild iso
flk iso
```
## Flake Talk:

View File

@ -6,7 +6,7 @@ let
configs = "${toString ./.}#nixosConfigurations";
build = "config.system.build";
rebuild = pkgs.writeShellScriptBin "rebuild" ''
flk = pkgs.writeShellScriptBin "flk" ''
if [[ -z $1 ]]; then
echo "Usage: $(basename $0) host {switch|boot|test|iso}"
elif [[ $1 == "iso" ]]; then
@ -21,7 +21,7 @@ pkgs.mkShell {
nativeBuildInputs = with pkgs; [
git
git-crypt
rebuild
flk
nix-zsh-completions
];