NixOS + home-manager configs, mirrored from GitLab SaaS. gitlab.com/andreijiroh-dev/nixops-config
nix-flake nixos home-manager nixpkgs nix-flakes
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

one more fix pls [skip ci]

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.dev>

+4 -4
+4 -4
scripts/deploy-config
··· 1 1 #!/usr/bin/env bash 2 - # This is a utility wrapper script around nixos-rebuild, intended for use 3 - # within the root directory of the repository as a local copy/clone. 2 + # This is a utility wrapper script around nixos-rebuild, intended for use within the root directory of the repository 3 + # as a local copy/clone. Might implement remote setups soon 4 4 # SPDX-License-Identifier: MPL-2.0 5 5 6 6 set -xe 7 7 HOSTNAME=$(hostname) 8 - NIXOS_HOSTNAME=${2:HOSTNAME} 8 + NIXOS_HOSTNAME=${2:-"$HOSTNAME"} 9 9 SUDO=${SUDO:"sudo"} 10 10 11 11 if [[ $EUID != "0" ]]; then ··· 18 18 elif [[ $1 == "boot" ]]; then 19 19 nixos-rebuild --verbose --show-trace --flake ".#${NIXOS_HOSTNAME}" boot 20 20 else 21 - echo "Unsupport command" 21 + echo "Unsupport command for this deployment wrapper" 22 22 echo "Usage: $0 <switch|boot> [hostname]" 23 23 exit 1 24 24 fi