22 lines
467 B
Nix
22 lines
467 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
config = lib.mkMerge [
|
|
(lib.mkIf config."hardware-config".usbAutoMount {
|
|
home-manager.users.rafiq.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 = "yazi";
|
|
};
|
|
};
|
|
};
|
|
})
|
|
];
|
|
}
|