# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
#
# SPDX-License-Identifier: Apache-2.0

{ depot, lib, pkgs, config, ... }:
let
  inherit (depot.ops) secrets;
in {
  imports = [
    ../lib/blade.nix
  ];

  boot.loader.grub.device = "/dev/disk/by-id/usb-USB_SanDisk_3.2Gen1_01015d3cbc98a05319a5ebb2b00fed57649bb0a8b5b5e517be322f1be132d4d8d60d00000000000000000000021d5c2c0083090091558107b6a8d5cd-0:0";

  # Networking!
  networking = {
    hostName = "blade-kim";
    hostId = "1643efb6";
  };
  my.ip.tailscale = "100.84.36.62";
  my.blade.bay = 1;
  my.blade.macAddress = {
    internal = "e4:11:5b:ac:d1:7a";
    storage = "e4:11:5b:ac:d1:7e";
  };
  my.deploy.enable = false;
  my.rundeck.expectedOnline = false;

  services.ceph = {
    #osd.enable = true;
  };
}