Skip to content

Commit da073f5

Browse files
committed
chore: config, flake, and misc working changes
Update .stack/config.nix, flake inputs, machine disk layout for road-sweet, connect-rpc entity codegen, and edit-secret-dialog optimistic update fix.
1 parent 7f11e66 commit da073f5

8 files changed

Lines changed: 335 additions & 183 deletions

File tree

.stack/config.nix

Lines changed: 106 additions & 80 deletions
Large diffs are not rendered by default.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{ lib, ... }:
2+
{
3+
disko.devices = {
4+
disk.main = {
5+
type = "disk";
6+
device = lib.mkDefault "/dev/vda";
7+
content = {
8+
type = "gpt";
9+
partitions = {
10+
bios = {
11+
size = "1M";
12+
type = "EF02";
13+
};
14+
15+
root = {
16+
size = "100%";
17+
content = {
18+
type = "filesystem";
19+
format = "ext4";
20+
mountpoint = "/";
21+
};
22+
};
23+
};
24+
};
25+
};
26+
};
27+
}

.stack/nix/default.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# ==============================================================================
1515
{
1616
config,
17+
inputs,
1718
lib,
1819
pkgs,
1920
...
@@ -37,6 +38,11 @@ in
3738
# PostgreSQL package - requires pkgs, so lives here instead of config.nix
3839
stackpanel.globalServices.postgres.package = pkgs.postgresql_17;
3940

41+
# Snapshot review tooling for Nix deployment regression tests.
42+
stackpanel.devshell.packages = [
43+
inputs.namaka.packages.${pkgs.system}.default
44+
];
45+
4046
# Runtime dependencies of `stackpanel` CLI.
4147
# Declaring them as runtimeInputs has two effects:
4248
# 1. nix build .#stackpanel-go → binary is wrapped so it finds these tools

.stack/secrets/bin/rekey.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22
set -euo pipefail
33

4-
PROJECT_ROOT=''
4+
PROJECT_ROOT=/Users/cm/.mux/src/stackpanel/stackpanel-71sc
55
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
66
if [[ -d "$PROJECT_ROOT/.stack/secrets/vars" ]]; then
77
SECRETS_DIR="$PROJECT_ROOT/.stack/secrets"
@@ -13,7 +13,7 @@ SOPS_CONFIG="$SECRETS_DIR/.sops.yaml"
1313
FILTER="${1:-}"
1414
REKEY_COUNT=0
1515

16-
export SOPS_AGE_KEY_CMD="${SOPS_AGE_KEY_CMD:-/nix/store/r10qifx43ql6c6zb9sxwv9a775jl7v5z-sops-age-keys/bin/sops-age-keys}"
16+
export SOPS_AGE_KEY_CMD="${SOPS_AGE_KEY_CMD:-/nix/store/afa15yhl99dmy3cl2z1zrkxpmvz5450v-sops-age-keys/bin/sops-age-keys}"
1717

1818
if [[ ! -d "$VARS_DIR" ]]; then
1919
echo "No vars directory found at $VARS_DIR"

0 commit comments

Comments
 (0)