diff options
| author | Kyren223 <Kyren223@proton.me> | 2025-06-22 16:32:44 +0300 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2025-06-22 16:32:44 +0300 |
| commit | aedda15cd4b9f755efc300901852c14116f27ac9 (patch) | |
| tree | 76ede414895e8f233b92a7374beb2a2ec8f3a626 /modules/desktop.nix | |
| parent | 50603e43686f99f7bc01ee9e622edd86ffe11dee (diff) | |
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
Diffstat (limited to 'modules/desktop.nix')
| -rw-r--r-- | modules/desktop.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/desktop.nix b/modules/desktop.nix index b0028de..4bffa18 100644 --- a/modules/desktop.nix +++ b/modules/desktop.nix @@ -23,4 +23,16 @@ options = [ "rw" "noatime" "uid=1000" ]; }; + fileSystems."/mnt/kopia" = { + device = "none"; + fsType = "fuse"; + options = [ "noauto" "allow_other" "default_permissions" "fsname=kopia" "uid=1000" ]; + }; + + # services.udev.enable = true; # usually on by default + # services.udev.extraRules = '' + # KERNEL=="kopia", ACTION=="add", ENV{ID_FS_TYPE}=="fuse.kopia", \ + # ENV{ID_MOUNT_ID}="kopia-mount", ENV{ID_FS_LABEL}=="kopia", \ + # SYMLINK+="kopia-mount" + # ''; } |
