mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-11-21 22:03:19 +01:00
refactor and add yodaNas [WIP]
This commit is contained in:
parent
d8a401d161
commit
1e99d9edce
@ -12,11 +12,11 @@
|
||||
boot.initrd.network.ssh = {
|
||||
enable = true;
|
||||
port = (
|
||||
if (config.networking.hostname == "yodaTux") || (config.networking.hostname == "yodaTab")
|
||||
if (config.networking.hostName == "yodaTux") || (config.networking.hostName == "yodaTab")
|
||||
then 22
|
||||
else if (config.networking.hostname == "yodaYoga")
|
||||
else if (config.networking.hostName == "yodaYoga")
|
||||
then 2225
|
||||
else if (config.networking.hostname == "yodaNas")
|
||||
else if (config.networking.hostName == "yodaNas")
|
||||
then 2223
|
||||
else throw "Please add initrd ssh port here"
|
||||
);
|
||||
@ -35,9 +35,9 @@
|
||||
# inxi -F
|
||||
#
|
||||
boot.initrd.availableKernelModules = (
|
||||
if (config.networking.hostname == "yodaTux")
|
||||
if (config.networking.hostName == "yodaTux")
|
||||
then [ "r8169" ]
|
||||
else if (config.networking.hostname == "yodaYoga")
|
||||
else if (config.networking.hostName == "yodaYoga")
|
||||
then [ "e1000e" ]
|
||||
else throw "Please add kernel module of networ card here"
|
||||
);
|
||||
|
@ -5,11 +5,11 @@
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
ports = (
|
||||
if (config.networking.hostname == "yodaTux") || (config.networking.hostname == "yodaTab")
|
||||
if (config.networking.hostName == "yodaTux") || (config.networking.hostName == "yodaTab")
|
||||
then [22]
|
||||
else if (config.networking.hostname == "yodaYoga")
|
||||
else if (config.networking.hostName == "yodaYoga")
|
||||
then [2224]
|
||||
else if (config.networking.hostname == "yodaNas")
|
||||
else if (config.networking.hostName == "yodaNas")
|
||||
then [2222]
|
||||
else throw "Please add ssh port here"
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user