diff --git a/main.nix b/main.nix index 4fb8300..6c0b035 100644 --- a/main.nix +++ b/main.nix @@ -26,6 +26,7 @@ ./modules/home-manager.nix ./modules/swap.nix ./modules/virtualisation.nix + ./modules/sshfs.nix ]) ++ (if device == "laptop" then [ ./modules/mpd.nix ] else []); diff --git a/modules/packages.nix b/modules/packages.nix index d9a0bfd..d58cf0e 100644 --- a/modules/packages.nix +++ b/modules/packages.nix @@ -206,8 +206,6 @@ in }) ] else [ bambu-studio - - inputs.nix-citizen.packages.${system}.rsi-launcher ]); services = { diff --git a/modules/sshfs.nix b/modules/sshfs.nix new file mode 100644 index 0000000..81d2185 --- /dev/null +++ b/modules/sshfs.nix @@ -0,0 +1,23 @@ +{ config, pkgs, ... }: + +{ + boot.supportedFilesystems = [ "fuse.sshfs" ]; + environment.systemPackages = [ pkgs.sshfs ]; + + systemd.tmpfiles.rules = [ + "d /mnt/box 0755 root root -" + ]; + + fileSystems."/mnt/box" = { + device = "bug@box.bug.tools:/"; + fsType = "fuse.sshfs"; + options = [ + "identityfile=/home/youruser/.ssh/id_ed25519" + "allow_other" + "x-systemd.automount" + "noauto" + "reconnect" + "ServerAliveInterval=15" + ]; + }; +} \ No newline at end of file