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;
|
".config/nvim".source = ../files/nvim;
|
||||||
|
|
||||||
# Secrets
|
# Secrets
|
||||||
".ssh/config".source = ../secrets/ssh/config;
|
".ssh/config".text = builtins.replaceStrings [ "@SSH_KEY@" ] [ host.sshKey ] (
|
||||||
|
builtins.readFile ../secrets/ssh/config.template
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
username = "cupcakearmy";
|
username = "cupcakearmy";
|
||||||
hostName = "mac14";
|
hostName = "mac14";
|
||||||
platform = "aarch64-darwin";
|
platform = "aarch64-darwin";
|
||||||
|
sshKey = "legba";
|
||||||
|
|
||||||
extras = {
|
extras = {
|
||||||
casks = [
|
casks = [
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
username = "nicco";
|
username = "nicco";
|
||||||
hostName = "ordio";
|
hostName = "ordio";
|
||||||
platform = "aarch64-darwin";
|
platform = "aarch64-darwin";
|
||||||
|
sshKey = "ordio";
|
||||||
|
|
||||||
extras = {
|
extras = {
|
||||||
casks = [
|
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