mirror of
https://github.com/cupcakearmy/nix-macos.git
synced 2025-09-05 18:30:39 +00:00
Refactor SSH config to use host-specific keys and disable nix
- Convert SSH config to template with @SSH_KEY@ placeholder - Add sshKey field to host configurations (mac14, ordio) - Update home.nix to dynamically substitute SSH keys per host - Change docker cask to docker-desktop in cask.nix - Add development packages to ordio host (mkcert, dnsmasq, etc.) - Disable nix in darwin.nix configuration
This commit is contained in:
@@ -33,7 +33,9 @@
|
||||
".config/nvim".source = ../files/nvim;
|
||||
|
||||
# Secrets
|
||||
".ssh/config".source = ../secrets/ssh/config;
|
||||
".ssh/config".text = builtins.replaceStrings [ "@SSH_KEY@" ] [ host.sshKey ] (
|
||||
builtins.readFile ../secrets/ssh/config.template
|
||||
);
|
||||
};
|
||||
|
||||
shellAliases = {
|
||||
|
@@ -2,6 +2,7 @@
|
||||
username = "cupcakearmy";
|
||||
hostName = "mac14";
|
||||
platform = "aarch64-darwin";
|
||||
sshKey = "legba";
|
||||
|
||||
extras = {
|
||||
casks = [
|
||||
|
@@ -2,6 +2,7 @@
|
||||
username = "nicco";
|
||||
hostName = "ordio";
|
||||
platform = "aarch64-darwin";
|
||||
sshKey = "ordio";
|
||||
|
||||
extras = {
|
||||
casks = [
|
||||
|
Binary file not shown.
BIN
secrets/ssh/config.template
Normal file
BIN
secrets/ssh/config.template
Normal file
Binary file not shown.
Reference in New Issue
Block a user