summaryrefslogtreecommitdiff
path: root/hosts/shared
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-10-25 01:14:57 -0700
committerFuwn <[email protected]>2024-10-25 01:15:00 -0700
commit07cbd014938ab277fa54008471b3ac6d617a62c8 (patch)
treee111bbfcce9070d57c660ded92548bf2483765d8 /hosts/shared
parenthome: add kioku ssh target (diff)
downloadnixos-config-07cbd014938ab277fa54008471b3ac6d617a62c8.tar.xz
nixos-config-07cbd014938ab277fa54008471b3ac6d617a62c8.zip
hosts: move kioku samba share to shared modules
Diffstat (limited to 'hosts/shared')
-rw-r--r--hosts/shared/hardware-configuration.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/hosts/shared/hardware-configuration.nix b/hosts/shared/hardware-configuration.nix
new file mode 100644
index 0000000..aea9310
--- /dev/null
+++ b/hosts/shared/hardware-configuration.nix
@@ -0,0 +1,21 @@
+{ config, ... }:
+{
+ fileSystems."/mnt/kioku" = {
+ device = "//kioku/usb";
+ fsType = "cifs";
+
+ options = [
+ "x-systemd.automount"
+ "noauto"
+ "x-systemd.idle-timeout=60"
+ "x-systemd.device-timeout=5s"
+ "x-systemd.mount-timeout=5s"
+ "rw"
+ "nofail"
+ "noatime"
+ "credentials=${config.sops.secrets.samba_secrets.path}"
+ "uid=1000"
+ "gid=1000"
+ ];
+ };
+}