connect server to nas NFS share
This commit is contained in:
parent
66f4ed1b1d
commit
1dc870e664
1 changed files with 18 additions and 8 deletions
|
|
@ -1,3 +1,6 @@
|
||||||
|
let
|
||||||
|
nasIp = "192.168.1.168";
|
||||||
|
in
|
||||||
{
|
{
|
||||||
network = {
|
network = {
|
||||||
name = "house";
|
name = "house";
|
||||||
|
|
@ -29,16 +32,23 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
server = {
|
server =
|
||||||
|
{ nodes, ... }:
|
||||||
|
{
|
||||||
deployment.targetHost = "192.168.1.65";
|
deployment.targetHost = "192.168.1.65";
|
||||||
imports = [ ../system/xps11/configuration.nix ];
|
imports = [ ../system/xps11/configuration.nix ];
|
||||||
networking.wireless.networks.N904.pskRaw = (
|
networking.wireless.networks.N904.pskRaw = (
|
||||||
(import ../system/framework/keys.nix).wifi.N904.pskRaw
|
(import ../system/framework/keys.nix).wifi.N904.pskRaw
|
||||||
);
|
);
|
||||||
|
|
||||||
|
fileSystems."/storage" = {
|
||||||
|
device = "${nasIp}:/storage";
|
||||||
|
fsType = "nfs";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
nas = {
|
nas = {
|
||||||
deployment.targetHost = "192.168.1.168";
|
deployment.targetHost = nasIp;
|
||||||
imports = [ ../system/svalbard/configuration.nix ];
|
imports = [ ../system/svalbard/configuration.nix ];
|
||||||
networking.wireless.networks.N904.pskRaw = (
|
networking.wireless.networks.N904.pskRaw = (
|
||||||
(import ../system/framework/keys.nix).wifi.N904.pskRaw
|
(import ../system/framework/keys.nix).wifi.N904.pskRaw
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue