terraform-nixos #1

Closed
kiara wants to merge 57 commits from terraform-nixos into tf
Owner

intended to swap out nixos-anywhere for terraform-nixos, over:

  • don't need nixos-anywhere to install nixos; we preload nixos to VMs
  • awkward non-flake usage
  • seemed not to pick up on config changes, as observed by test VMs
    losing their panel keys after TF sync

however, it seems that terraform-nixos has so far had its own flaws:

todo on terraform-nixos:

  • get terraform-nixos to work deployed by either:
    • pass on ssh info
    • figure out why terraform-nixos's ssh also needs SSH_AUTH_SOCK - not fixed by removing ssh options
  • preventing redeploy on no-op - data item data.external.nixos-instantiate still re-evaluates each time
    • [ ] output using a random id, i.e. forcing to push even on no changes (resources rerun on trigger changes)
  • cleanup
    • rm unneeded top-level variables
    • [ ] solve jq / <nixpkgs> thing
    • rebase
    • documentation
intended to swap out nixos-anywhere for terraform-nixos, over: - [ ] don't need nixos-anywhere to install nixos; we preload nixos to VMs - [ ] [awkward non-flake usage](https://nix-community.github.io/nixos-anywhere/howtos/use-without-flakes.html#3-set-nixos-version-to-use) - [ ] seemed not to pick up on config changes, as observed by test VMs losing their panel keys after TF sync however, it seems that terraform-nixos has so far had its own flaws: todo on terraform-nixos: - [x] get terraform-nixos to work deployed by either: - [x] pass on ssh info - [ ] figure out why terraform-nixos's ssh also needs `SSH_AUTH_SOCK` - not fixed by removing ssh options - [x] preventing redeploy on no-op - data item `data.external.nixos-instantiate` still re-evaluates each time - ~~[ ] output using a random id, i.e. forcing to push even on no changes (resources rerun on trigger changes)~~ - [ ] cleanup - ~~rm unneeded top-level variables~~ - ~~[ ] solve jq / `<nixpkgs>` thing~~ - [x] rebase - [ ] documentation
kiara added 29 commits 2025-04-10 08:46:47 +02:00
Reviewed-on: Fediversity/Fediversity#297
Co-authored-by: Kiara Grouwstra <kiara@procolix.eu>
Co-committed-by: Kiara Grouwstra <kiara@procolix.eu>
This reverts commit 95769084ce.
seemingly gets further when a similar command is tried from terminal.
as per https://github.com/NixOS/nix/issues/8752#issuecomment-1694714693,
this may have to do with aligning the current working directory.
in case we want that file for something else, we can move this (and its
ignore) to something separate.
intended to swap out nixos-anywhere for terraform-nixos, over:

- don't need nixos-anywhere to install nixos; we preload nixos to VMs
- [awkward non-flake
usage](https://nix-community.github.io/nixos-anywhere/howtos/use-without-flakes.html#3-set-nixos-version-to-use)
-  seemed not to pick up on config changes, as observed by test VMs
losing their panel keys after TF sync

however, it seems that terraform-nixos has its own flaws:

- its output using a random id, i.e. forcing to push even on no changes
- so far did not get ssh authentication to work
kiara added 1 commit 2025-04-10 09:00:31 +02:00
kiara added 1 commit 2025-04-10 09:04:06 +02:00
kiara added 1 commit 2025-04-10 10:07:39 +02:00
kiara added 1 commit 2025-04-10 11:12:46 +02:00
kiara added 1 commit 2025-04-10 14:01:15 +02:00
kiara added 1 commit 2025-04-12 09:33:28 +02:00
kiara added 1 commit 2025-04-12 09:56:06 +02:00
kiara added 1 commit 2025-04-12 10:27:18 +02:00
kiara added 2 commits 2025-04-12 11:36:31 +02:00
kiara added 3 commits 2025-04-12 13:38:27 +02:00
kiara added 2 commits 2025-04-12 14:11:17 +02:00
kiara added 2 commits 2025-04-12 14:36:45 +02:00
kiara added 1 commit 2025-04-12 16:46:13 +02:00
kiara added 2 commits 2025-04-12 22:18:29 +02:00
kiara added 1 commit 2025-04-13 13:11:16 +02:00
kiara added 2 commits 2025-04-13 13:36:20 +02:00
kiara added 2 commits 2025-04-13 21:14:43 +02:00
kiara added 2 commits 2025-04-13 21:44:24 +02:00
kiara added 1 commit 2025-04-13 21:53:27 +02:00
Author
Owner

closing in favor of Fediversity/Fediversity#307

closing in favor of https://git.fediversity.eu/Fediversity/Fediversity/pulls/307
kiara closed this pull request 2025-04-13 22:48:54 +02:00

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: kiara/Fediversity#1
No description provided.