refactor and add yodaNas [WIP]

This commit is contained in:
Daniel Langbein 2023-09-23 19:15:54 +02:00
parent d8a401d161
commit 1e99d9edce
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002
2 changed files with 8 additions and 8 deletions

View File

@ -12,11 +12,11 @@
boot.initrd.network.ssh = { boot.initrd.network.ssh = {
enable = true; enable = true;
port = ( port = (
if (config.networking.hostname == "yodaTux") || (config.networking.hostname == "yodaTab") if (config.networking.hostName == "yodaTux") || (config.networking.hostName == "yodaTab")
then 22 then 22
else if (config.networking.hostname == "yodaYoga") else if (config.networking.hostName == "yodaYoga")
then 2225 then 2225
else if (config.networking.hostname == "yodaNas") else if (config.networking.hostName == "yodaNas")
then 2223 then 2223
else throw "Please add initrd ssh port here" else throw "Please add initrd ssh port here"
); );
@ -35,9 +35,9 @@
# inxi -F # inxi -F
# #
boot.initrd.availableKernelModules = ( boot.initrd.availableKernelModules = (
if (config.networking.hostname == "yodaTux") if (config.networking.hostName == "yodaTux")
then [ "r8169" ] then [ "r8169" ]
else if (config.networking.hostname == "yodaYoga") else if (config.networking.hostName == "yodaYoga")
then [ "e1000e" ] then [ "e1000e" ]
else throw "Please add kernel module of networ card here" else throw "Please add kernel module of networ card here"
); );

View File

@ -5,11 +5,11 @@
services.openssh = { services.openssh = {
enable = true; enable = true;
ports = ( ports = (
if (config.networking.hostname == "yodaTux") || (config.networking.hostname == "yodaTab") if (config.networking.hostName == "yodaTux") || (config.networking.hostName == "yodaTab")
then [22] then [22]
else if (config.networking.hostname == "yodaYoga") else if (config.networking.hostName == "yodaYoga")
then [2224] then [2224]
else if (config.networking.hostname == "yodaNas") else if (config.networking.hostName == "yodaNas")
then [2222] then [2222]
else throw "Please add ssh port here" else throw "Please add ssh port here"
); );