Jump to content

Talk:USB storage devices

From Official NixOS Wiki
Latest comment: 7 October by Strider22 in topic Without Home Manager

Is the issues with needing to specify file managers fixed?

I'm on sway nix 25.11 and enabled:

services.udiskie.enable = true;

I have access to a mount in Yazi, Thunar, and Cosmic Files. Is this an ongoing issue still then? Phobos (talk) 04:08, 5 January 2026 (UTC)Reply

Without Home Manager

AI has given the following as a method for amending configuration.nix

Can anyone confirm its utility?


code/

nix

{ config, pkgs, ... }: {

  # 1. Enable the underlying udisks2 service
  services.udisks2.enable = true;

  # 2. Add udiskie to your system packages
  environment.systemPackages = with pkgs; [
    udiskie
  ];

  # 3. Create a systemd user service to launch udiskie on login
  systemd.user.services.udiskie = {
    description = "udiskie automatic media mounter";
    wantedBy = [ "graphical-session.target" ];
    partOf = [ "graphical-session.target" ];
    serviceConfig = {
      # Runs udiskie with a system tray icon enabled
      ExecStart = "${pkgs.udiskie}/bin/udiskie --tray";
      Restart = "always";
    };
  };

}

/code

Also, I am on XFCE. What should be put in "graphical-session.target"

Strider22 (talk) 21:18, 7 October 2026 (UTC)Reply