* feat: add test node and spin up podman/cockpit * dev hack * bug: disable wayland temporarily #52 * feat: add nfs mount to nas * chore: add nas to sshconf * derp * hax * fix: hax * feat: firefox and gnome tweaks * chore: tweak nautilus --------- Co-authored-by: Truxnell <9149206+truxnell@users.noreply.github.com>
38 lines
679 B
Nix
38 lines
679 B
Nix
{ lib
|
|
, config
|
|
, pkgs
|
|
, ...
|
|
}:
|
|
with lib;
|
|
let
|
|
cfg = config.mySystem.nfs.nas;
|
|
in
|
|
{
|
|
options.mySystem.nfs.nas.enable = mkEnableOption "Mount NAS";
|
|
|
|
config = mkIf cfg.enable
|
|
{
|
|
|
|
services.rpcbind.enable = true; # needed for NFS
|
|
|
|
environment.systemPackages = with pkgs; [ nfs-utils ];
|
|
|
|
systemd.mounts = [{
|
|
type = "nfs";
|
|
mountConfig = {
|
|
Options = "noatime";
|
|
};
|
|
what = "helios:/tank";
|
|
where = "/mnt/nas";
|
|
}];
|
|
|
|
systemd.automounts = [{
|
|
wantedBy = [ "multi-user.target" ];
|
|
automountConfig = {
|
|
TimeoutIdleSec = "600";
|
|
};
|
|
where = "/mnt/nas";
|
|
}];
|
|
|
|
};
|
|
}
|