mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-11-22 22:09:34 +01:00
refactor and add yodaNas [WIP]
This commit is contained in:
parent
d8a401d161
commit
1e99d9edce
@ -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"
|
||||||
);
|
);
|
||||||
|
@ -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"
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user