From bb58e52c2cc332a5d81e51c3f7793b2a4f3110a7 Mon Sep 17 00:00:00 2001 From: Dave Gallant Date: Sat, 14 Jan 2023 11:39:48 -0500 Subject: [PATCH] Add nfs mount --- flake.lock | 6 +++--- home/default.nix | 10 ++++++---- machines/hephaestus/hardware.nix | 5 +++++ packages/linux.nix | 4 +--- 4 files changed, 15 insertions(+), 10 deletions(-) diff --git a/flake.lock b/flake.lock index fbf0a7f..0976e3a 100644 --- a/flake.lock +++ b/flake.lock @@ -93,11 +93,11 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1673450908, - "narHash": "sha256-b8em+kwrNtnB7gR8SyVf6WuTyQ+6tHS6dzt9D9wgKF0=", + "lastModified": 1673540789, + "narHash": "sha256-xqnxBOK3qctIeUVxecydrEDbEXjsvHCPGPbvsl63M/U=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "6c8644fc37b6e141cbfa6c7dc8d98846c4ff0c2e", + "rev": "0f213d0fee84280d8c3a97f7469b988d6fe5fcdf", "type": "github" }, "original": { diff --git a/home/default.nix b/home/default.nix index f03519c..19b0b07 100644 --- a/home/default.nix +++ b/home/default.nix @@ -173,11 +173,13 @@ in { source $HOME/.zsh-work - if [[ "$OSTYPE" == "darwin"* ]]; then - export PATH="$(brew --prefix)/opt/gnu-tar/libexec/gnubin:$PATH" - export PATH="$(brew --prefix)/opt/gnu-sed/libexec/gnubin:$PATH" + if [[ "$OSTYPE" == "darwin"* ]]; + then + export PATH = "$(brew --prefix)/opt/gnu-tar/libexec/gnubin:$PATH" + export + PATH="$(brew --prefix)/opt/gnu-sed/libexec/gnubin:$PATH" - alias xdg-open=open + alias xdg-open=open fi # helm diff --git a/machines/hephaestus/hardware.nix b/machines/hephaestus/hardware.nix index 87249c1..a260900 100644 --- a/machines/hephaestus/hardware.nix +++ b/machines/hephaestus/hardware.nix @@ -62,6 +62,11 @@ fsType = "vfat"; }; + fileSystems."/mnt/synology-2b/media" = { + device = "192.168.1.250:/volume1/Media"; + fsType = "nfs"; + }; + swapDevices = [ {device = "/dev/disk/by-uuid/5d6d0388-2b15-4ff1-9f0f-391818a76090";} ]; diff --git a/packages/linux.nix b/packages/linux.nix index a2fd3a9..516e647 100644 --- a/packages/linux.nix +++ b/packages/linux.nix @@ -17,9 +17,7 @@ in { lm_sensors netdata pinentry-curses - /* - rfd - */ + nfs-utils rustup strace tailscale