From 9f10655a6c1a03fa3ce8a9f3bfe28cda1b774370 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Tue, 18 Jun 2024 19:16:35 -0400 Subject: [PATCH] rustboro: add samba share automounts --- hosts/rustboro/default.nix | 36 ++++++++++++++++++++++++++++++ nixosModules/users/aly/default.nix | 2 +- 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/hosts/rustboro/default.nix b/hosts/rustboro/default.nix index 763bb2a3..f70ac2e6 100644 --- a/hosts/rustboro/default.nix +++ b/hosts/rustboro/default.nix @@ -21,6 +21,42 @@ networking.hostName = "rustboro"; # Define your hostname. + fileSystems = { + "/mnt/Archive" = { + device = "//mauville/Archive"; + fsType = "cifs"; + options = [ + "gid=100" + "guest" + "nofail" + "uid=${toString config.users.users.aly.uid}" + "x-systemd.after=network.target" + "x-systemd.after=tailscaled.service" + "x-systemd.automount" + "x-systemd.device-timeout=5s" + "x-systemd.idle-timeout=60" + "x-systemd.mount-timeout=5s" + ]; + }; + + "/mnt/Media" = { + device = "//mauville/Media"; + fsType = "cifs"; + options = [ + "gid=100" + "guest" + "nofail" + "uid=${toString config.users.users.aly.uid}" + "x-systemd.after=network.target" + "x-systemd.after=tailscaled.service" + "x-systemd.automount" + "x-systemd.device-timeout=5s" + "x-systemd.idle-timeout=60" + "x-systemd.mount-timeout=5s" + ]; + }; + }; + alyraffauf = { base = { enable = true; diff --git a/nixosModules/users/aly/default.nix b/nixosModules/users/aly/default.nix index 64a7f7af..dfb985e2 100644 --- a/nixosModules/users/aly/default.nix +++ b/nixosModules/users/aly/default.nix @@ -13,7 +13,7 @@ isNormalUser = true; linger = true; uid = 1000; - + openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGcJBb7+ZxkDdk06A0csNsbgT9kARUN185M8k3Lq7E/d u0_a336@localhost" # termux on winona (builtins.readFile ../../../secrets/publicKeys/aly_lavaridge.pub)