add ssh key

This commit is contained in:
Kopatz
2024-05-11 16:09:25 +02:00
parent bb3d6dea47
commit ae83bd1fb8
3 changed files with 9 additions and 4 deletions

View File

@@ -18,10 +18,15 @@ in
type = types.str;
description = "interface to apply the change to";
};
gateway = lib.mkOption {
type = types.str;
default = "192.168.0.1";
description = "Default gateway";
};
};
config = mkIf cfg.enable {
networking = {
defaultGateway = "192.168.0.1";
defaultGateway = cfg.gateway;
useDHCP = false;
nameservers = [
cfg.dns