Add a separate share for logs

This commit is contained in:
Andreas Zweili 2022-07-14 13:06:28 +02:00
parent b6e73b9eca
commit b37a2607c0
4 changed files with 13 additions and 4 deletions

View File

@ -1,8 +1,5 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
lnav
];
fileSystems."/mnt/data" = {
device = "10.7.89.108:server_data";
fsType = "nfs";

View File

@ -0,0 +1,11 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
lnav
];
fileSystems."/mnt/server_logs" = {
device = "10.7.89.108:logs";
fsType = "nfs";
options = [ "x-systemd.automount" "noauto" "x-systemd.idle-timeout=300" "noatime" "nfsvers=4.0" ];
};
}

View File

@ -1,10 +1,10 @@
{ inputs, ... }:
{
imports = [
"${inputs.self}/modules/data-share"
"${inputs.self}/modules/desktop"
"${inputs.self}/modules/docker"
"${inputs.self}/modules/espanso"
"${inputs.self}/modules/logs-share"
"${inputs.self}/modules/nix-direnv"
"${inputs.self}/modules/tmux"
];

View File

@ -13,6 +13,7 @@
"${inputs.self}/modules/eog"
"${inputs.self}/modules/espanso"
"${inputs.self}/modules/lockscreen"
"${inputs.self}/modules/logs-share"
"${inputs.self}/modules/nix-direnv"
"${inputs.self}/modules/restic"
"${inputs.self}/modules/tlp"