Skip to content
Snippets Groups Projects
Select Git revision
  • f526062058733d7ad97a849dee2f286fa1523c00
  • develop default protected
  • production protected
  • nixpkgs-upgrade-2025-06-16
  • nixpkgs-upgrade-2024-12-23
  • 190-our-regular-updates-fill-up-the-servers-boot-partitions
  • nixpkgs-upgrade-2024-10-14
  • hro-cloud protected
  • 162.flexible-grafana-module
  • nixpkgs-upgrade-2024-05-13
  • nixpkgs-upgrade-2024-04-22
  • nixpkgs-upgrade-2024-03-25
  • nixpkgs-upgrade-2024-03-18
  • nixpkgs-upgrade-2024-03-11
  • nixpkgs-upgrade-2024-03-04
  • 163.jp-to-ben-for-prod
  • nixpkgs-upgrade-2024-02-26
  • 164.grafana-alert-rules
  • 157.authorize-new-hro-key
  • nixpkgs-upgrade-2024-02-19
  • nixpkgs-upgrade-2024-02-12
21 results

grafana.nix

Blame
  • update-deployment 605 B
    #!/usr/bin/env nix-shell
    #!nix-shell -i bash -p morph
    
    set -euxo pipefail
    
    GRIDNAME=$1
    shift
    
    CHECKOUT="/run/user/$(id --user)/PrivateStorageio"
    REPO="https://whetstone.privatestorage.io/privatestorage/PrivateStorageio.git"
    
    if [ -e "${CHECKOUT}" ]; then
        git -C "${CHECKOUT}" pull
    else
        git clone "${REPO}" "${CHECKOUT}"
        # Check out the right branch ... which also happens to be named after this
        # grid (or maybe this grid is named after the branch).
        git -C "${CHECKOUT}" checkout "${GRIDNAME}"
    fi
    
    morph deploy "${CHECKOUT}"/morph/grid/"${GRIDNAME}"/grid.nix switch --on "$(hostname)"