cleo-darwin: enable ssh
This commit is contained in:
@@ -90,6 +90,16 @@ in
|
|||||||
home = "/Users/matthew.bessette";
|
home = "/Users/matthew.bessette";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.openssh = {
|
||||||
|
enable = true;
|
||||||
|
extraConfig = ''
|
||||||
|
StrictModes no
|
||||||
|
# Deny everyone by default unless they match the subnet rule
|
||||||
|
Match Address !192.168.0.0/16
|
||||||
|
DenyUsers *
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
# Homebrew for Casks and specific binaries
|
# Homebrew for Casks and specific binaries
|
||||||
# In a nix-darwin setup, Homebrew packages are not actually stored inside the Nix store.
|
# In a nix-darwin setup, Homebrew packages are not actually stored inside the Nix store.
|
||||||
# Instead, nix-darwin acts as a manager that triggers the standard Homebrew installation
|
# Instead, nix-darwin acts as a manager that triggers the standard Homebrew installation
|
||||||
|
|||||||
+3
-1
@@ -1,4 +1,4 @@
|
|||||||
{ config, pkgs, inputs, ... }:
|
{ config, pkgs, inputs, vars, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./programs.vscode.nix
|
./programs.vscode.nix
|
||||||
@@ -77,6 +77,8 @@
|
|||||||
home.file."android-sdk/platform-tools/adb".source = config.lib.file.mkOutOfStoreSymlink "/opt/homebrew/bin/adb";
|
home.file."android-sdk/platform-tools/adb".source = config.lib.file.mkOutOfStoreSymlink "/opt/homebrew/bin/adb";
|
||||||
home.file."android-sdk/cmdline-tools/latest/bin/sdkmanager".source = config.lib.file.mkOutOfStoreSymlink "/opt/homebrew/bin/sdkmanager";
|
home.file."android-sdk/cmdline-tools/latest/bin/sdkmanager".source = config.lib.file.mkOutOfStoreSymlink "/opt/homebrew/bin/sdkmanager";
|
||||||
|
|
||||||
|
home.file.".ssh/authorized_keys".text = (builtins.concatStringsSep "\n" vars.sshPublicKeys) + "\n";
|
||||||
|
|
||||||
home.file.".copilot/settings.json".text = builtins.toJSON {
|
home.file.".copilot/settings.json".text = builtins.toJSON {
|
||||||
footer = {
|
footer = {
|
||||||
showModelEffort = true;
|
showModelEffort = true;
|
||||||
|
|||||||
@@ -140,6 +140,7 @@
|
|||||||
system = linuxSystem;
|
system = linuxSystem;
|
||||||
hostname = "caesium";
|
hostname = "caesium";
|
||||||
userConfig = (import ./variables.nix { inherit pkgs; })."mbessette";
|
userConfig = (import ./variables.nix { inherit pkgs; })."mbessette";
|
||||||
|
vars = import ./variables.nix { inherit pkgs; };
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
@@ -163,6 +164,7 @@
|
|||||||
system = darwinSystem;
|
system = darwinSystem;
|
||||||
hostname = "hydrogen";
|
hostname = "hydrogen";
|
||||||
userConfig = (import ./variables.nix { inherit pkgs; }).mbessette;
|
userConfig = (import ./variables.nix { inherit pkgs; }).mbessette;
|
||||||
|
vars = import ./variables.nix { inherit pkgs; };
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
@@ -186,6 +188,7 @@
|
|||||||
system = darwinSystem;
|
system = darwinSystem;
|
||||||
hostname = "cleo-darwin";
|
hostname = "cleo-darwin";
|
||||||
userConfig = (import ./variables.nix { inherit pkgs; })."matthew.bessette";
|
userConfig = (import ./variables.nix { inherit pkgs; })."matthew.bessette";
|
||||||
|
vars = import ./variables.nix { inherit pkgs; };
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
|
|||||||
@@ -163,6 +163,7 @@ in
|
|||||||
enableBashIntegration = true;
|
enableBashIntegration = true;
|
||||||
enableZshIntegration = true;
|
enableZshIntegration = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
shell-integration-features = "ssh-terminfo,ssh-env";
|
||||||
macos-icon = "chalkboard";
|
macos-icon = "chalkboard";
|
||||||
keybind = [
|
keybind = [
|
||||||
"home=text:\\x01" # Ctrl-A -> beginning of line
|
"home=text:\\x01" # Ctrl-A -> beginning of line
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
{ config, inputs, pkgs, ... }: {
|
{ config, inputs, pkgs, ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
./programs.vscode.nix
|
./programs.vscode.nix
|
||||||
./programs.thunderbird.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
|
|||||||
@@ -18,4 +18,8 @@ in {
|
|||||||
_1PassKeyName = "Cleo SSH Key";
|
_1PassKeyName = "Cleo SSH Key";
|
||||||
_1PassKeyVault = "Cleo";
|
_1PassKeyVault = "Cleo";
|
||||||
};
|
};
|
||||||
|
sshPublicKeys = [
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILsZW38Ad1GAhGgfo7LsBzt6M4oo30VafsmNrILPMVio" # Personal SSH Key
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHC7FdwVyL71a2+7K9DFqNEiuvHO4eDh5ndS1tivimMi" # Cleo SSH Key
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user