From aedda15cd4b9f755efc300901852c14116f27ac9 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Sun, 22 Jun 2025 16:32:44 +0300 Subject: Backing up for future reference, tired to automount kopia but it seems very complicated and it's not worth my time: https://www.reddit.com/r/NixOS/comments/12uoti5/how_do_i_automount_fuse_devices/ https://stackoverflow.com/questions/1554178/how-to-register-fuse-filesystem-type-with-mount8-and-fstab https://home-manager.dev/manual/23.05/options.html#opt-services.udiskie.notify https://wiki.archlinux.org/title/Fstab https://forum.manjaro.org/t/root-tip-how-to-systemd-mount-unit-samples/1191/8 https://forum.manjaro.org/t/root-tip-how-to-use-systemd-to-mount-any-device/1185 --- modules/systemd.nix | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'modules/systemd.nix') diff --git a/modules/systemd.nix b/modules/systemd.nix index 9c6f4a4..075e7a5 100644 --- a/modules/systemd.nix +++ b/modules/systemd.nix @@ -65,4 +65,13 @@ serviceConfig = { Type = "oneshot"; User = "kyren"; }; }; + ########################################################################### + + # systemd.mounts = [ + # { what = "kopia"; type = "fuse.kopia"; where = "/mnt/kopia"; wantedBy = ["multi-user.target"]; options = "noauto,allow_other,default_permissions,fsname=kopia"; } + # ]; + # # + # systemd.automounts = [ + # { where = "/mnt/kopia"; wantedBy = ["multi-user.target"]; } + # ]; } -- cgit v1.3.1