{"id":17786675,"url":"https://github.com/dr-nekoma/trashcan","last_synced_at":"2025-10-27T23:39:44.629Z","repository":{"id":259152562,"uuid":"874458187","full_name":"Dr-Nekoma/trashcan","owner":"Dr-Nekoma","description":"A multi-purpose server written in Nix/NixOS❄️","archived":false,"fork":false,"pushed_at":"2024-11-28T01:23:21.000Z","size":108,"stargazers_count":4,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-02T05:29:05.067Z","etag":null,"topics":["age","justfile","linux","nix","nix-flakes","nixos","postgresql","server","terraform"],"latest_commit_sha":null,"homepage":"","language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Dr-Nekoma.png","metadata":{"files":{"readme":"README.org","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-17T21:30:47.000Z","updated_at":"2025-01-20T01:18:10.000Z","dependencies_parsed_at":"2024-10-26T22:37:13.244Z","dependency_job_id":"c61b02a1-572f-464f-a388-01ed5053298e","html_url":"https://github.com/Dr-Nekoma/trashcan","commit_stats":{"total_commits":12,"total_committers":2,"mean_commits":6.0,"dds":0.08333333333333337,"last_synced_commit":"965cbe7f2c3f46068b04af77538cd9dff8dcf991"},"previous_names":["dr-nekoma/trashcan"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Dr-Nekoma/trashcan","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dr-Nekoma%2Ftrashcan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dr-Nekoma%2Ftrashcan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dr-Nekoma%2Ftrashcan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dr-Nekoma%2Ftrashcan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dr-Nekoma","download_url":"https://codeload.github.com/Dr-Nekoma/trashcan/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dr-Nekoma%2Ftrashcan/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270165075,"owners_count":24538428,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-12T02:00:09.011Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["age","justfile","linux","nix","nix-flakes","nixos","postgresql","server","terraform"],"created_at":"2024-10-27T10:04:21.540Z","updated_at":"2025-10-27T23:39:44.624Z","avatar_url":"https://github.com/Dr-Nekoma.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"* Trashcan 🗑️\n\n#+html: \u003ca href=\"https://builtwithnix.org\"\u003e\u003cimg alt=\"built with nix\" src=\"https://builtwithnix.org/badge.svg\" /\u003e\u003c/a\u003e\u003cbr\u003e\n#+html: \u003ca href=\"https://github.com/Dr-Nekoma/trashcan/actions/workflows/qemu_build.yml\"\u003e\u003cimg alt=\"[QEMU] Build\" src=\"https://github.com/Dr-Nekoma/trashcan/actions/workflows/qemu_build.yml/badge.svg\" /\u003e\u003c/a\u003e\n\nThis repository contains the server configuration to host our applications,\ncurrently we deploy the following projects here:\n\n+ [[https://github.com/Dr-Nekoma/lyceum][Lyceum]]\n\n** Developmennt\n\nEnter the Nix shell via the cli, or leverage direnv:\n\n#+begin_src shell\n  # Nix CLI\n  nix develop --impure\n  # direnv\n  direnv allow\n#+end_src\n\n*** Setting Up Local Keys\n\nIf you dont have any keys setup already:\n\n#+begin_src shell\n  cd keys\n  ssh-keygen -t ed25519 -C \"your.email@gmail.com\"\n  cd ../secrets\n  # Either, if you have a key in your agent\n  agenix --rekey\n  # Or\n  agenix --rekey -i ../keys/your_private_key\n#+end_src\n\n*** Qemu VM\n\n#+begin_src shell\n  just run\n#+end_src\n\nWhen inside the VM, check if a few services are running fine:\n\n#+begin_src shell\n  systemctl status sshd.service\n#+end_src\n\nAdd the following to your ~$HOME/.ssh/config~:\n\n#+begin_src shell\n  Host nixos_vm\n    HostName 127.0.0.1\n    Port 2222\n    StrictHostKeyChecking no\n    User your_user\n    IdentityFile your_key\n#+end_src\n\nthen try to login:\n\n#+begin_src shell\n  ssh nixos_vm\n#+end_src\n\n*** Custom ISO \n\nYou can also build an ~.iso~ to test with different tools.\n\n#+begin_src shell\n  nix build .#iso\n#+end_src\n\n** Deployment\n\n*** Provisioning with Terraform\n\n#+begin_src shell\n  just update-vars\n  just plan\n  just apply\n  # if you need to nuke the infra as well\n  just destroy\n#+end_src\n\nAfter the initial terraform deploy, make sure to run:\n#+begin_src shell\n  just rekey\n#+end_src\n\n*** Deploying with Nix\n\nAfter provisioning the infrastructure, you won't need Terraform anymore, all\ndeploys can be done in pure Nix.\n\n#+begin_src shell\n  just deploy\n  # or\n  deploy\n#+end_src\n\n* Acknowledgements\n\n+ The Terraform-based bootstrap is a modification from the great setup found in the\n  [[https://github.com/Gabriella439/nixos-in-production][NixOS in Production]] book.\n+ Magalu Cloud setup is inspired by [[https://github.com/Misterio77/hackathon-mgc-factorio-terraform]][Declarative Factorio] repo.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdr-nekoma%2Ftrashcan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdr-nekoma%2Ftrashcan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdr-nekoma%2Ftrashcan/lists"}