forked from pub-solar/os
shell: rename rebuild to flk
This commit is contained in:
parent
42e02c08d6
commit
94de0921e6
2
DOC.md
2
DOC.md
|
@ -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.
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in a new issue