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

31 lines
551 B
Nix
Raw Normal View History

2024-02-02 13:45:05 +01:00
{
config,
lib,
pkgs,
...
}:
let
cfg = config.services.az-logs-share;
in
{
2023-05-31 22:01:26 +02:00
options = {
services.az-logs-share.enable = lib.mkEnableOption "Enable mount share";
};
config = lib.mkIf cfg.enable {
2024-01-01 13:14:24 +01:00
environment.systemPackages = with pkgs; [ unstable.lnav ];
2023-05-31 22:01:26 +02:00
fileSystems."/mnt/server_logs" = {
device = "10.7.89.108:logs";
fsType = "nfs";
2024-01-01 13:14:24 +01:00
options = [
"x-systemd.automount"
"noauto"
"x-systemd.idle-timeout=300"
"noatime"
"nfsvers=4.0"
"ro"
];
2023-05-31 22:01:26 +02:00
};
2022-07-14 13:06:28 +02:00
};
}