nix-config/modules/default/common/desktop/nfs-client.nix
2024-12-27 15:08:02 +01:00

18 lines
350 B
Nix

{ lib, config, pkgs, ... }:
lib.mkIf config.desktop.enable {
environment.systemPackages = with pkgs; [
nfs-utils
];
services.autofs = {
enable = true;
autoMaster = let
mapConf = pkgs.writeText "auto.nfs" ''
roms -fstype=nfs4 192.168.178.19:/roms
'';
in ''
/mnt/nfs ${mapConf}
'';
};
}