{"id":22558255,"url":"https://github.com/redbrick/nix-configs","last_synced_at":"2025-04-10T06:33:58.117Z","repository":{"id":42653067,"uuid":"228876312","full_name":"redbrick/nix-configs","owner":"redbrick","description":"NixOS configs for Redbrick deployment","archived":false,"fork":false,"pushed_at":"2024-11-28T18:34:25.000Z","size":645,"stargazers_count":16,"open_issues_count":14,"forks_count":5,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-11-28T19:34:02.328Z","etag":null,"topics":["configuration","deployment","hacktoberfest","nixos"],"latest_commit_sha":null,"homepage":"","language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/redbrick.png","metadata":{"files":{"readme":"README.md","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":"2019-12-18T16:08:14.000Z","updated_at":"2024-11-28T18:34:28.000Z","dependencies_parsed_at":"2023-01-23T01:45:43.448Z","dependency_job_id":"b7cd0da4-86bd-47aa-95c7-c4801ba06b5d","html_url":"https://github.com/redbrick/nix-configs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redbrick%2Fnix-configs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redbrick%2Fnix-configs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redbrick%2Fnix-configs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redbrick%2Fnix-configs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redbrick","download_url":"https://codeload.github.com/redbrick/nix-configs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228651858,"owners_count":17951896,"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","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":["configuration","deployment","hacktoberfest","nixos"],"created_at":"2024-12-07T20:13:09.090Z","updated_at":"2024-12-07T20:13:09.611Z","avatar_url":"https://github.com/redbrick.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NixOS Configurations\n\nUsed to deploy redbrick 2.0\n\n## Installation\n\n```bash\ncd /etc/nixos\ntar -cjf ~/nixos_backup.tar.bz2 *\nrm *\ngit clone $THIS_REPO .\nln -s hosts/$(hostname)/configuration.nix .\nnixos-rebuild switch\n```\n\n## Deploying Apache/httpd\n\n`users.nix` needs to be generated before deploying Apache. This is important to run after users have been created or moved. Use this command:\n\n```bash\ncd services/httpd\nldapsearch -b o=redbrick -h ldap.internal -xLLL objectClass=posixAccount uid homeDirectory gidNumber | python3 ldap2nix.py /storage/webtree/ \u003e users.nix\n```\n\nA rebuild will need to happen for these new users to be picked up by apache.\n\n```bash\ncd /etc/nixos \u0026\u0026 nixos-rebuild switch\n```\n\nThen generate the preliminary certs for every domain so that httpd can start:\n```bash\n# List all acme-selfsigned-* services and put them in a txt file. Do this with `systemctl status acme-selfsigned-\u003ctab\u003e`\ncat selfsigned-svcs.txt | xargs systemctl start\n```\n\nNow apache will start. Generate the real certs for each domain, one at a time as to not get rate limited\n\n```bash\ncd /var/lib/acme\nfor cert in *; do journalctl -fu acme-$cert.service \u0026 systemctl start acme-$cert.service \u0026\u0026 kill $!; done\nsystemctl reload httpd\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredbrick%2Fnix-configs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredbrick%2Fnix-configs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredbrick%2Fnix-configs/lists"}