-
Notifications
You must be signed in to change notification settings - Fork 0
refactor: cache.komunix.org web #17
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
Draft
r17x
wants to merge
15
commits into
main
Choose a base branch
from
nixify/area13
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
af69be8
refactor: cache.komunix.org web
r17x 81b0bda
feat: make module generic for cachex
r17x 24430fe
chore: precommit enable
r17x dbb81cd
feat(machine): add raspi system
r17x 6ad086c
feat(secrets): add tailscale auth key
r17x 68e3540
chore: update gitignore
r17x ff23ea9
feat(cachex): using nfs in service
r17x 5cd6c5b
feat(komunix): integrate tailscale
r17x db1f161
feat(nfs): update nfs configurations
r17x d6aef68
feat(komunix): fix nfs integrations
r17x a6b16b1
feat(traefik): add traefik services
r17x 5e74cc8
feat(cachex): separate modules traefik and sops
r17x 0d7febc
chore: removed legacy nix-shell
r17x ddee725
chore(lockfile): update & sync
r17x a0b4d61
ci: update tailscale auth using ephemeral
r17x File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| use_nix | ||
| use flake | ||
|
|
||
| export TF_VAR_do_token= | ||
| export TF_VAR_linode_token= | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| secrets/*.yaml diff=sopsdiffer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| keys: | ||
| - &r17x B0B63B776767DFAA669D06715CA1E57AFBF76F90 | ||
| - &komunix-dev age13rrpdnr7f9knpgdvafvjkp74ejacuhcvzhdw2j8h5xjwyrmrhv4s4tvr8j | ||
| creation_rules: | ||
| - path_regex: secrets/(?:[^/]+/)*[^/]+\.(yaml|json|env|ini)$ | ||
| key_groups: | ||
| - pgp: | ||
| - *r17x | ||
| age: | ||
| - *komunix-dev | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| { | ||
| description = "area13"; | ||
|
|
||
| outputs = | ||
| inputs@{ flake-parts, pre-commit-hooks, ... }: | ||
| flake-parts.lib.mkFlake { inherit inputs; } { | ||
| systems = [ | ||
| "aarch64-darwin" | ||
| "aarch64-linux" | ||
| "x86_64-linux" | ||
| ]; | ||
|
|
||
| imports = [ | ||
| pre-commit-hooks.flakeModule | ||
| ./nix | ||
| ]; | ||
| }; | ||
|
|
||
| inputs = { | ||
| # utilities for Flake | ||
| flake-parts.url = "github:hercules-ci/flake-parts"; | ||
|
|
||
| ## -- nixpkgs | ||
| nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; | ||
| nixpkgs-stable.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; | ||
| nixpkgs.follows = "nixpkgs-unstable"; | ||
|
|
||
| # secret management | ||
| sops.url = "github:Mic92/sops-nix"; | ||
| sops.inputs.nixpkgs.follows = "nixpkgs"; | ||
| sops.inputs.nixpkgs-stable.follows = "nixpkgs-stable"; | ||
|
|
||
| # utilities | ||
| pre-commit-hooks.url = "github:cachix/pre-commit-hooks.nix"; | ||
| pre-commit-hooks.inputs.nixpkgs.follows = "nixpkgs"; | ||
| }; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,94 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="UTF-8"> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
| <title>cache.komunix.org (di raspi) - UP</title> | ||
| </head> | ||
| <body> | ||
| <pre> | ||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
| __ __ | ||
| /\ \ /\ \ __ | ||
| ___ __ ___\ \ \___ __ \ \ \/'\ ___ ___ ___ __ __ ___ /\_\ __ _ ___ _ __ __ | ||
| /'___\ /'__`\ /'___\ \ _ `\ /'__`\ \ \ , < / __`\ /' __` __`\/\ \/\ \ /' _ `\/\ \ /\ \/'\ / __`\/\`'__\/'_ `\ | ||
| /\ \__//\ \L\.\_/\ \__/\ \ \ \ \/\ __/ __\ \ \\`\ /\ \L\ \/\ \/\ \/\ \ \ \_\ \/\ \/\ \ \ \\/> / __/\ \L\ \ \ \//\ \L\ \ | ||
| \ \____\ \__/.\_\ \____\\ \_\ \_\ \____\/\_\\ \_\ \_\ \____/\ \_\ \_\ \_\ \____/\ \_\ \_\ \_\/\_/\_\/\_\ \____/\ \_\\ \____ \ | ||
| \/____/\/__/\/_/\/____/ \/_/\/_/\/____/\/_/ \/_/\/_/\/___/ \/_/\/_/\/_/\/___/ \/_/\/_/\/_/\//\/_/\/_/\/___/ \/_/ \/___L\ \ | ||
| /\____/ | ||
| \_/__/ | ||
|
|
||
| <b>/nix/store milik bersama</b> | <b>tulung@komunix.org</b> | ||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
| > NixOS | ||
|
|
||
| # /etc/nixos/configuration.nix | ||
|
|
||
| { nix.settings.substituters = [ https://cache.komunix.org/ ]; } | ||
|
|
||
| > GNU/Linux | ||
|
|
||
| # /etc/nix/nix.conf | ||
|
|
||
| fallback = true | ||
| binary-caches = https://cache.komunix.org/ https://cache.nixos.org/ | ||
|
|
||
| # OR | ||
|
|
||
| fallback = true | ||
| substituters = https://cache.komunix.org | ||
|
|
||
|
|
||
| > Mac OS | ||
|
|
||
| # $HOME/.nixpkgs/darwin-configuration.nix | ||
|
|
||
| nix.settings.substituters = pkgs.lib.mkBefore [ "https://cache.komunix.org/" ]; | ||
|
|
||
| > Flake | ||
|
|
||
| nix.settings.experimental-features = [ "nix-command" "flakes" ]; | ||
| nix.settings.trusted-substituters = [ "https://cache.komunix.org" ]; | ||
|
|
||
| # Recomendation | ||
| nix.settings.fallback = true; | ||
|
|
||
|
|
||
| enjoy :^) | ||
|
|
||
| --- | ||
|
|
||
| # stats for nerds | ||
|
|
||
| $> find /home/komunix/nfs/nix-cache -type f | wc -l | ||
|
|
||
| $TOTAL_CACHE | ||
|
|
||
| $> du -sh /home/komunix/nfs/nix-cache; echo; df -h /home/komunix/nfs/nix-cache; echo; date +%s | ||
|
|
||
| $NICE | ||
|
|
||
| Filesystem Size Used Avail Use% Mounted on | ||
| $USAGE | ||
|
|
||
| $TIMESTAMP | ||
| </pre> | ||
| </body> | ||
| </html> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.