Compare commits

..

17 commits

Author SHA1 Message Date
9e32af4257
Revert "try store mounted read-only"
This reverts commit 586be6f309.
2025-08-04 18:01:48 +02:00
134692f500
try store mounted read-only
- `--store` as per
https://blog.kotatsu.dev/posts/2023-04-21-woodpecker-nix-caching/
- `--eval-store` as per
https://kevincox.ca/2022/01/02/nix-in-docker-caching/
2025-08-04 18:01:48 +02:00
eab27d7cf8
schema 2025-08-04 18:01:48 +02:00
99b8278ea4
max 5 2025-08-04 18:01:48 +02:00
12d1089cd5
un-bash strace 2025-08-04 18:01:48 +02:00
784e5820f9
container dns
rm dns
2025-08-04 18:01:48 +02:00
f18cbfeb9a
enable firewall 2025-08-04 18:01:48 +02:00
e2a28a9b6e
document nftables 2025-08-04 18:01:48 +02:00
65afda1d49
generalize firewall hole 2025-08-04 18:01:48 +02:00
460f3822ab
rm agent exec
plug hole in firewall

format
2025-08-04 16:57:59 +02:00
f22a2acafe
disable firewall nftables
disables nftables for woodpecker, just like for forgejo-ci
2025-08-04 16:57:59 +02:00
f31278711e
disable exec agent
make service group setting conditional

make secrets conditional

make things conditional

rm group
2025-08-04 16:57:59 +02:00
5e8ec6f9fc
set service groups
add agent groups
2025-08-04 16:57:59 +02:00
270258aaf2
configure user
simplify secrets

set just group for system users
2025-08-04 16:57:56 +02:00
6c754c41bb
un-template
none like _file somehow?
2025-08-04 16:57:54 +02:00
7718678c1d
fix container agent 2025-08-04 16:47:17 +02:00
99134565a3
add woodpecker CI
add woodpecker

status: agents error `agent could not auth: individual agent not found
by token: sql: no rows in result set`

allow manual

set `image: bash` to initally test `local` woodpecker back-end

split CI jobs

image: `bash` (`local` back-end) -> `nixos/nix` (`docker` back-end)

add debugging lines to CD pipeline to debug error `Could not open a connection to your authentication agent`

add more debug prints to CD

even more debugging

continue debugging

debug harder

explicitly specify flakes as nixos/nix image is missing this

rm /home

update fedi203

wrap faulty statement

fix check-resources

split

strace pkg
2025-08-04 16:47:17 +02:00
2 changed files with 5 additions and 8 deletions

View file

@ -12,15 +12,14 @@ steps:
- |
mkdir -p ~/.ssh
echo "$CD_SSH_KEY" > ~/.ssh/id_ed25519
ls -l ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
- nix-shell -p strace --run 'strace -f -o ssh-agent.log ssh-agent -s'
- cat ssh-agent.log
- |
eval "$(ssh-agent -s)"
echo 'agent started'
ssh-add ~/.ssh/id_ed25519
echo 'key added'
- nix-shell --eval-store local --store unix:///mnt/nix/var/nix/daemon-socket/socket?root=/mnt --run 'eval "$(ssh-agent -s)" && ssh-add ~/.ssh/id_ed25519 && ssh-agent -s && SHELL=$(which bash) nixops4 apply -v default'
- nix-shell --run 'eval "$(ssh-agent -s)" && ssh-add ~/.ssh/id_ed25519 && ssh-agent -s && SHELL=$(which bash) nixops4 apply -v default'
environment:
CD_SSH_KEY:
from_secret: cd_ssh_key
volumes:
- /nix:/mnt/nix:ro

View file

@ -10,6 +10,4 @@ steps:
- name: check-deployment-basic
image: nixos/nix
commands:
- nix build --eval-store local --store unix:///mnt/nix/var/nix/daemon-socket/socket?root=/mnt --extra-experimental-features 'nix-command flakes' .#checks.x86_64-linux.deployment-basic -L
volumes:
- /nix:/mnt/nix:ro
- nix build --extra-experimental-features 'nix-command flakes' .#checks.x86_64-linux.deployment-basic -L