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
|
Module declarations dependant on particular machines should be stored in the
|
||||||
[hosts](hosts) directory. Every file in this directory will be added automatically
|
[hosts](hosts) directory. Every file in this directory will be added automatically
|
||||||
to the the `nixosConfigurations` flake output and thus becomes deployable via
|
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.
|
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
|
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
|
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}
|
# Usage: flk host {switch|boot|test|iso}
|
||||||
rebuild <host-filename> test
|
flk <host-filename> test
|
||||||
```
|
```
|
||||||
|
|
||||||
## Build an ISO
|
## Build an ISO
|
||||||
@ -78,7 +78,7 @@ You can make an ISO and customize it by modifying the [niximg](./hosts/niximg.ni
|
|||||||
file:
|
file:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
rebuild iso
|
flk iso
|
||||||
```
|
```
|
||||||
|
|
||||||
## Flake Talk:
|
## Flake Talk:
|
||||||
|
@ -6,7 +6,7 @@ let
|
|||||||
configs = "${toString ./.}#nixosConfigurations";
|
configs = "${toString ./.}#nixosConfigurations";
|
||||||
build = "config.system.build";
|
build = "config.system.build";
|
||||||
|
|
||||||
rebuild = pkgs.writeShellScriptBin "rebuild" ''
|
flk = pkgs.writeShellScriptBin "flk" ''
|
||||||
if [[ -z $1 ]]; then
|
if [[ -z $1 ]]; then
|
||||||
echo "Usage: $(basename $0) host {switch|boot|test|iso}"
|
echo "Usage: $(basename $0) host {switch|boot|test|iso}"
|
||||||
elif [[ $1 == "iso" ]]; then
|
elif [[ $1 == "iso" ]]; then
|
||||||
@ -21,7 +21,7 @@ pkgs.mkShell {
|
|||||||
nativeBuildInputs = with pkgs; [
|
nativeBuildInputs = with pkgs; [
|
||||||
git
|
git
|
||||||
git-crypt
|
git-crypt
|
||||||
rebuild
|
flk
|
||||||
nix-zsh-completions
|
nix-zsh-completions
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user