prep main darwin config

This commit is contained in:
TheGeneralist 2025-05-29 15:35:31 +02:00
parent 50da7ffff8
commit 523aaff701
No known key found for this signature in database
GPG key ID: C391D4D52D630F45
32 changed files with 423 additions and 142 deletions

View file

@ -1 +0,0 @@

11
modules/darwin/dns.nix Normal file
View file

@ -0,0 +1,11 @@
{ config, lib, ... }: {
networking.knownNetworkServices = [
"Wi-Fi"
"Firewall"
"Thunderbolt Bridge"
];
networking.dns = config.dnsServers
|> map (lib.splitString "#")
|> map lib.head;
}

14
modules/darwin/ssh.nix Normal file
View file

@ -0,0 +1,14 @@
# { lib, ... }: let
# sshOptions = {
# PermitRootLogin = "no";
# PasswordAuthentication = "no";
# };
# in {
# services.openssh = {
# enable = true;
# extraConfig = sshOptions
# |> lib.mapAttrsToList (name: value: "${name} ${value}")
# |> lib.concatStringsSep "\n";
# };
# }
{}