mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-05-02 13:44:23 +02:00
fix: nix-darwin do not have a programs.ssh.extraConfig
This commit is contained in:
@@ -32,11 +32,6 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.ssh = {
|
|
||||||
extraConfig = vars_networking.ssh.extraConfig;
|
|
||||||
knownHosts = vars_networking.ssh.knownHosts;
|
|
||||||
};
|
|
||||||
|
|
||||||
nix.settings = {
|
nix.settings = {
|
||||||
# enable flakes globally
|
# enable flakes globally
|
||||||
experimental-features = ["nix-command" "flakes"];
|
experimental-features = ["nix-command" "flakes"];
|
||||||
|
|||||||
@@ -1,9 +1,18 @@
|
|||||||
{lib, ...}: {
|
{
|
||||||
|
lib,
|
||||||
|
vars_networking,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||||
# Or disable the firewall altogether.
|
# Or disable the firewall altogether.
|
||||||
networking.firewall.enable = lib.mkDefault false;
|
networking.firewall.enable = lib.mkDefault false;
|
||||||
|
|
||||||
|
programs.ssh = {
|
||||||
|
extraConfig = vars_networking.ssh.extraConfig;
|
||||||
|
knownHosts = vars_networking.ssh.knownHosts;
|
||||||
|
};
|
||||||
|
|
||||||
# Enable the OpenSSH daemon.
|
# Enable the OpenSSH daemon.
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user