nixos/modules/services/logs-share/default.nix

21 lines
499 B
Nix
Raw Normal View History

2023-05-31 22:01:26 +02:00
{ config, lib, pkgs, ... }:
let
cfg = config.services.az-logs-share;
in
2022-07-14 13:06:28 +02:00
{
2023-05-31 22:01:26 +02:00
options = {
services.az-logs-share.enable = lib.mkEnableOption "Enable mount share";
};
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [
unstable.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" "ro" ];
};
2022-07-14 13:06:28 +02:00
};
}