Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: add probot settings ci & doc comments #28

Merged
merged 5 commits into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@
"github>truxnell/renovate-config",
"github>truxnell/renovate-config:automerge-github-actions",
],
"platform": "github",
"username": "trux-bot[bot]",

"gitAuthor": "Trux-Bot <19149206+trux-bot[bot]@users.noreply.github.com>",
"repositories": ["truxnell/nix-config"],
"ignoreTests": "false",

// TODO remove once out of beta?
Expand Down
75 changes: 75 additions & 0 deletions .github/settings.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# These settings are synced to GitHub by https://probot.github.io/apps/settings/

repository:
# See https://docs.github.com/en/rest/reference/repos#update-a-repository for all available settings.

# The name of the repository. Changing this will rename the repository
name: nix-config

# A short description of the repository that will show up on GitHub
description: My nix & nixos home setup

# A URL with more information about the repository
# homepage: https://example.github.io/

# A comma-separated list of topics to set on the repository
topics: nix, nixos

# Either `true` to make the repository private, or `false` to make it public.
private: false

# Either `true` to enable issues for this repository, `false` to disable them.
has_issues: true

# Either `true` to enable projects for this repository, or `false` to disable them.
# If projects are disabled for the organization, passing `true` will cause an API error.
has_projects: false

# Either `true` to enable the wiki for this repository, `false` to disable it.
has_wiki: false

# Either `true` to enable downloads for this repository, `false` to disable them.
has_downloads: false

# Updates the default branch for this repository.
default_branch: main

# Either `true` to allow squash-merging pull requests, or `false` to prevent
# squash-merging.
allow_squash_merge: true

# Either `true` to allow merging pull requests with a merge commit, or `false`
# to prevent merging pull requests with merge commits.
allow_merge_commit: false

# Either `true` to allow rebase-merging pull requests, or `false` to prevent
# rebase-merging.
allow_rebase_merge: true

# Either `true` to enable automatic deletion of branches on merge, or `false` to disable
delete_branch_on_merge: true

# Either `true` to enable automated security fixes, or `false` to disable
# automated security fixes.
enable_automated_security_fixes: false

# Either `true` to enable vulnerability alerts, or `false` to disable
# vulnerability alerts.
enable_vulnerability_alerts: true

# Labels: define labels for Issues and Pull Requests
# labels:
# - name: bug
# color: CC0000
# description: An issue with the system 🐛.

# - name: feature
# # If including a `#`, make sure to wrap it with quotes!
# color: '#336699'
# description: New functionality.

# - name: Help Wanted
# # Provide a new name to rename an existing label
# new_name: first-timers-only

# TODO branch protection once nailed down.
2 changes: 1 addition & 1 deletion .github/workflows/nix-lint.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Nix Flake Check
name: Nix Lint

on: [pull_request]

Expand Down
9 changes: 9 additions & 0 deletions .sops.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
---
# config files for sops & used for encrypting keys that sops-nix decrypts.
# each machine key is derieved from its generated `ssh_hosts_ed` file
# via ssh-to-age
# sops encrypts the secrets ready to decrypt with the private key of any of the below machines
# OR my 'main' key thats kept outside this repo securely.

# key-per-machine is a little more secure and a little more work than
# copying one key to each machine

keys:
- &nixosvm age1d3qtnwd73k0npgwhqwpwysdpqa2zyyjyyzs463f5rak9swmw45gsxdyjyn
- &nixosvm2 age16mwx76r29pa9lnmagujw9adxrpujxmxu38hjfastf6pgw6v66gjs5ugewz
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@ TBC

TBC

## Checklist

### Adding new node

- Add to #top in flake
- Ensure secrets are grabbed from note and all sops re-encrypte with task sops:re-encrypt
- Add to relevant github action workflows
- Add to settings.yaml for PR checks

## Applying configuration changes on a local machine can be done as follows:

```sh
Expand Down
1 change: 1 addition & 0 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
# go-task runner file - rest of config in .taskfiles/**.*.yaml
version: "3"

includes:
Expand Down
2 changes: 2 additions & 0 deletions garnix.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
---
# Config for garnix.io builds & caching
builds:
include:
- homeConfigurations.*
Expand Down
3 changes: 3 additions & 0 deletions partition.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## STILL WIP
## Wanted to avoid bringing in complexity of disko

#!/usr/bin/env bash
set -x

Expand Down