From 114a1085a6e26449715649e5961408c5a748c134 Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Sun, 3 May 2026 11:15:36 +0200 Subject: [PATCH] feat: setup automounting usb devices --- hosts/skadi/configuration.nix | 3 +++ modules/linux/home-manager/desktop.nix | 13 +++++++++++++ 2 files changed, 16 insertions(+) diff --git a/hosts/skadi/configuration.nix b/hosts/skadi/configuration.nix index 1d8c3c6..4eb69a1 100644 --- a/hosts/skadi/configuration.nix +++ b/hosts/skadi/configuration.nix @@ -67,6 +67,9 @@ # Setup profiles sync daemon services.psd.enable = true; + # Setup automatic usb device mounting + services.udisks2.enable = true; + # Get nicer hostname networking.hostName = "skadi"; # Define your hostname. diff --git a/modules/linux/home-manager/desktop.nix b/modules/linux/home-manager/desktop.nix index d04d1ff..f796ea0 100644 --- a/modules/linux/home-manager/desktop.nix +++ b/modules/linux/home-manager/desktop.nix @@ -36,5 +36,18 @@ # Install imv programs.imv.enable = true; + + # Setup udisk for automatic mounting of usb devices + services.udiskie = { + enable = true; + settings = { + # workaround for + # https://github.com/nix-community/home-manager/issues/632 + program_options = { + # replace with your favorite file manager + file_manager = "${pkgs.kitty}/bin/kitty -e yazi"; + }; + }; + }; }; }