summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2025-06-22 16:32:44 +0300
committerKyren223 <Kyren223@proton.me>2025-06-22 16:32:44 +0300
commitaedda15cd4b9f755efc300901852c14116f27ac9 (patch)
tree76ede414895e8f233b92a7374beb2a2ec8f3a626
parent50603e43686f99f7bc01ee9e622edd86ffe11dee (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
-rw-r--r--hosts/home.nix14
-rw-r--r--modules/apps.nix3
-rw-r--r--modules/desktop.nix12
-rw-r--r--modules/systemd.nix9
4 files changed, 37 insertions, 1 deletions
diff --git a/hosts/home.nix b/hosts/home.nix
index 6217930..ef41a70 100644
--- a/hosts/home.nix
+++ b/hosts/home.nix
@@ -26,7 +26,7 @@
];
xdg.desktopEntries = {
- "com.ktechpit.whatsie" = {
+ "WhatsAppp" = {
name = "WhatsApp";
genericName = "Unofficial WhatsApp client";
exec = "WEBKIT_DISABLE_DMABUF_RENDERER=1 wasistlos %U";
@@ -39,6 +39,18 @@
};
};
+ # home.file.".local/share/applications/kopia-mount.desktop".text = ''
+ # [Desktop Entry]
+ # Type=Application
+ # Name=Kopia Backup
+ # Exec=xdg-open /mnt/kopia
+ # Icon=folder
+ # Terminal=false
+ # X-UDISKS2-Show=true
+ # '';
+
+ # services.udiskie.automount = true;
+
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
}
diff --git a/modules/apps.nix b/modules/apps.nix
index 664feed..9bda2d2 100644
--- a/modules/apps.nix
+++ b/modules/apps.nix
@@ -21,6 +21,8 @@
wl-clipboard
jdk
noto-fonts
+ kdePackages.kio-fuse
+ kdePackages.kio-extras
dejavu_fonts
font-awesome
@@ -31,6 +33,7 @@
# Utility
gimp
+ inkscape
keepassxc
protonvpn-gui
(python312.withPackages (pypkgs: [
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"
+ # '';
}
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"]; }
+ # ];
}