prep main darwin config
This commit is contained in:
parent
50da7ffff8
commit
523aaff701
32 changed files with 423 additions and 142 deletions
|
|
@ -1 +0,0 @@
|
|||
|
||||
11
modules/darwin/dns.nix
Normal file
11
modules/darwin/dns.nix
Normal 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
14
modules/darwin/ssh.nix
Normal 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";
|
||||
# };
|
||||
# }
|
||||
{}
|
||||
Loading…
Add table
Add a link
Reference in a new issue