Added vatnajokull NAS as a separate module
This commit is contained in:
@@ -63,6 +63,8 @@ in
|
|||||||
system.pass.enable = true;
|
system.pass.enable = true;
|
||||||
system.sshfs.enable = true;
|
system.sshfs.enable = true;
|
||||||
|
|
||||||
|
server.vatnajokull.enable = true;
|
||||||
|
|
||||||
# - Desktop ----------------------------------
|
# - Desktop ----------------------------------
|
||||||
desktop = {
|
desktop = {
|
||||||
inherit wallpaper;
|
inherit wallpaper;
|
||||||
|
|||||||
@@ -22,13 +22,6 @@
|
|||||||
device = "/dev/disk/by-label/BOOT";
|
device = "/dev/disk/by-label/BOOT";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
};
|
};
|
||||||
|
|
||||||
"/mnt/vatnajokull" = {
|
|
||||||
device = "vatnajokull:/mnt/raid1";
|
|
||||||
fsType = "nfs";
|
|
||||||
options = [ "x-systemd.automount" "noauto" "noatime" "x-systemd.idle-timeout=600"];
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [
|
swapDevices = [
|
||||||
|
|||||||
@@ -61,6 +61,7 @@ with lib;
|
|||||||
server = true;
|
server = true;
|
||||||
host-config = ../../config/nomad.d/host-thingvellir.hcl;
|
host-config = ../../config/nomad.d/host-thingvellir.hcl;
|
||||||
};
|
};
|
||||||
|
server.vatnajokull.enable = true;
|
||||||
|
|
||||||
# - Editors and development ------------------
|
# - Editors and development ------------------
|
||||||
dev.git.userName = "marc";
|
dev.git.userName = "marc";
|
||||||
|
|||||||
@@ -17,13 +17,6 @@
|
|||||||
device = "/dev/disk/by-label/nixos";
|
device = "/dev/disk/by-label/nixos";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
"/mnt/vatnajokull" = {
|
|
||||||
# device = "vatnajokull:/mnt/raid1";
|
|
||||||
device = "100.89.248.65:/mnt/raid1";
|
|
||||||
fsType = "nfs";
|
|
||||||
options = [ "x-systemd.automount" "noauto" "noatime" "x-systemd.idle-timeout=600"];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [
|
swapDevices = [
|
||||||
|
|||||||
21
modules/server/vatnajokull.nix
Normal file
21
modules/server/vatnajokull.nix
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
{ config, lib, pkgs, self, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
vatnajokull-ip = "100.89.248.65";
|
||||||
|
cfg = config.samfelag.modules.server.vatnajokull;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.samfelag.modules.server.vatnajokull = {
|
||||||
|
enable = lib.mkEnableOption "Vatnajokull NAS";
|
||||||
|
};
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
||||||
|
fileSystems = {
|
||||||
|
"/mnt/vatnajokull" = {
|
||||||
|
device = "${vatnajokull-ip}:/mnt/raid1";
|
||||||
|
fsType = "nfs";
|
||||||
|
options = [ "x-systemd.automount" "noauto" "noatime" "x-systemd.idle-timeout=600"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user