From 94de0921e62081c65f54ac1a00c8ebc21b99ab75 Mon Sep 17 00:00:00 2001 From: Timothy DeHerrera Date: Fri, 25 Dec 2020 22:14:56 -0700 Subject: [PATCH] shell: rename rebuild to flk --- DOC.md | 2 +- README.md | 8 ++++---- shell.nix | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/DOC.md b/DOC.md index 7474099..7f1f4ce 100644 --- a/DOC.md +++ b/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. diff --git a/README.md b/README.md index f898dd7..5c07276 100644 --- a/README.md +++ b/README.md @@ -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 test +# Usage: flk host {switch|boot|test|iso} +flk 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: diff --git a/shell.nix b/shell.nix index 6de3a11..4e9af0c 100644 --- a/shell.nix +++ b/shell.nix @@ -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 ];