diff options
| author | Franck Cuny <franck@fcuny.net> | 2025-12-14 13:01:14 -0800 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2025-12-14 13:01:14 -0800 |
| commit | 0520741b8ab872efcabb16ab3abcb0d6aaaa5718 (patch) | |
| tree | 7156bb80ad72f7c8035dcfca906c4dd98d0d99ac /flake/scripts/darwin.nix | |
| parent | remove duplicated configuration for treefmt/pre-commit (diff) | |
| download | infra-0520741b8ab872efcabb16ab3abcb0d6aaaa5718.tar.gz | |
use `just` (again) instead of custom scripts
Diffstat (limited to 'flake/scripts/darwin.nix')
| -rw-r--r-- | flake/scripts/darwin.nix | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/flake/scripts/darwin.nix b/flake/scripts/darwin.nix deleted file mode 100644 index abf6eac..0000000 --- a/flake/scripts/darwin.nix +++ /dev/null @@ -1,29 +0,0 @@ -{ - pkgs, - system, - inputs, -}: -[ - (pkgs.writeScriptBin "nbuild" '' - set -e - echo "> Running darwin-rebuild build..." - ${inputs.darwin.packages.${system}.darwin-rebuild}/bin/darwin-rebuild build --flake . - echo "> darwin-rebuild build was successful ✅" - '') - - (pkgs.writeScriptBin "nswitch" '' - set -e - echo "> Running darwin-rebuild switch..." - ${inputs.darwin.packages.${system}.darwin-rebuild}/bin/darwin-rebuild switch --flake . - echo "> macOS config was successfully applied 🚀" - '') - - (pkgs.writeScriptBin "sync-agenix-key" '' - set -e - echo "> Copying agenix SSH key from 1password ..." - mkdir -p ~/.ssh - ${pkgs._1password-cli}/bin/op --account my.1password.com read "op://Private/agenix/private key?ssh-format=openssh" > ~/.ssh/agenix - ${pkgs._1password-cli}/bin/op --account my.1password.com read "op://Private/agenix/public key" > ~/.ssh/agenix.pub - echo "> agenix SSH key copied successfully 🔐" - '') -] |
