pantheon/modules/hm/hardware.nix
2025-05-03 12:40:20 +08:00

25 lines
523 B
Nix

{
config,
lib,
...
}:
let
username = config.nixosModules.mainUser;
in
{
config = lib.mkMerge [
(lib.mkIf config."hardware-config".usbAutoMount {
home-manager.users.${username}.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";
};
};
};
})
];
}