Quick & easy cloud storage with dufs and NixOS
-- dufs1 (the distinctive file - utility server) is a cloud storage replacement for those looking to move away from third-party services like - Google Drive or Proton Drive. it supports WebDAV and HTTPS file transfer protocols. -
-It's very easy to set up and get going in NixOS using a Docker container.
+Quick & easy cloud storage with dufs and NixOS
++ dufs1 + (the distinctive file utility server) is a cloud storage replacement for + those looking to move away from third-party services like Google Drive + or Proton Drive. it supports WebDAV and HTTPS file transfer protocols. +
++ It's very easy to set up and get going in NixOS using a Docker + container. +
-Set up dufs
-First, enable docker in your configuration.nix:
+Set up dufs
+First, enable docker in your
+configuration.nix:- Then define a Docker container, either in yourvirtualisation.docker.enable = true;configuration.nixor in a custom module: -+ Then define a Docker container, either in your +configuration.nixor in a custom module: +- Rebuild your configuration by runningvirtualisation.oci-containers = { backend = "docker"; @@ -74,84 +83,114 @@ };sudo nixos-rebuild switchand head on over to -http://localhost:5000to behold your lovely files. Now we need a method to access our files on other - devices inside (and outside) of our home network. Tailscale2 provides commands to accomplish this easily. + Rebuild your configuration by running +sudo nixos-rebuild switchand head on over to +http://localhost:5000to behold your lovely files. Now we + need a method to access our files on other devices inside (and outside) of + our home network. Tailscale2 + provides commands to accomplish this easily. -Set up Tailscale
-- You can use Tailscale to access the files on other devices inside (and outside) of your home network. Tailscale is - like a crazy-fast vpn with a bunch of other comfort features like MagicDNS3, keyless SSH4 and - easy HTTPS5. -
-To enable it in nixos, add the following to your
-configuration.nix:+Set up Tailscale
++ You can use Tailscale to access the files on other devices inside (and + outside) of your home network. Tailscale is like a crazy-fast vpn with a + bunch of other comfort features like MagicDNS3, keyless SSH4 + and easy HTTPS5. +
++ To enable it in nixos, add the following to your +
+configuration.nix: +-services.tailscale.enable = true; networking.firewall.trustedInterfaces = [ "tailscale0" ];- Once again, rebuild your configuration by running
-sudo nixos-rebuild switchand run -tailscale upto start tailscale. The tailscale connection will persist on reboot, so no need to worry - about adding it to your init process. -- I recommend enabling MagicDNS in the admin console > DNS > MagicDNS, but if you prefer not to, your server's IP - address will be visible by running
-tailscale ip -4. -- Head over to
+http://<hostname or ip>:5000on one of your other machines running tailscale to - upload, - download, and view your self-hosted files. -+ Once again, rebuild your configuration by running +
+sudo nixos-rebuild switchand run +tailscale upto start tailscale. The tailscale connection + will persist on reboot, so no need to worry resume adding it to your + init process. ++ I recommend enabling MagicDNS in the admin console > DNS > MagicDNS, but + if you prefer not to, your server's IP address will be visible by + running
+tailscale ip -4. ++ Head over to
-http://<hostname or ip>:5000on one of + your other machines running tailscale to upload, download, and view your + self-hosted files. +dufs clients
-- As for client recommendations, Round Sync6 on android is quite good. it supports both WebDAV and HTTPS remotes, I - chose to use WebDAV when connecting. -
-
-Thanks for stopping by ^.^
+dufs clients
++ As for client recommendations, Round Sync6 + on android is quite good. it supports both WebDAV and HTTPS remotes, I + chose to use WebDAV when connecting. +
+
+Thanks for stopping by ^.^
-Footnotes
--
- ^ Back to top -- - dufs - ↩ -
-- - Tailscale - ↩ -
-- - MagicDNS - ↩ -
-- - Tailscale SSH - ↩ -
-- - Tailscale HTTPS - ↩ -
-- - Round Sync - ↩ -
-
Footnotes
+-
+
- + dufs + ↩ + +
- + Tailscale + ↩ + +
- + MagicDNS + ↩ + +
- + Tailscale SSH + ↩ + +
- + Tailscale HTTPS + ↩ + +
- + Round Sync + ↩ + +