feat(home-manager): add udiskie module

This commit is contained in:
Mohammad Rafiq 2025-04-27 20:27:38 +08:00
parent cb42df54ec
commit 45f314f71b
No known key found for this signature in database
2 changed files with 26 additions and 1 deletions

View file

@ -10,7 +10,10 @@ let
cfg = config."${moduleName}"; cfg = config."${moduleName}";
in in
{ {
imports = [ inputs.home-manager.nixosModules.home-manager ]; imports = [
inputs.home-manager.nixosModules.home-manager
./hardware.nix
];
options = { options = {
"${moduleName}" = { "${moduleName}" = {

22
modules/hm/hardware.nix Normal file
View file

@ -0,0 +1,22 @@
{
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";
};
};
};
})
];
}