Skip to content

Commit

Permalink
feat: add udiskie
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed Oct 5, 2023
1 parent 9ab7e19 commit 2180f47
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 9 deletions.
31 changes: 31 additions & 0 deletions modules/home/services/udiskie/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{ config
, lib
, ...
}:
let
inherit (lib) mkEnableOption mkIf;

cfg = config.khanelinix.services.udiskie;

in
{
options.khanelinix.services.udiskie = {
enable = mkEnableOption "udiskie";
};

config = mkIf cfg.enable {
services.udiskie = {
enable = true;
automount = true;
notify = true;
tray = "auto";
};

systemd.user.targets.tray = {
Unit = {
Description = "Home Manager System Tray";
Requires = [ "graphical-session-pre.target" ];
};
};
};
}
22 changes: 13 additions & 9 deletions modules/home/suites/common/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,12 @@ in
};
};

tools = {
bat = enabled;
direnv = enabled;
git = enabled;
lsd = enabled;
oh-my-posh = enabled;
topgrade = enabled;
services = {
udiskie = enabled;
};

security = {
# gpg = enabled;
};

system = {
Expand All @@ -52,8 +51,13 @@ in
};
};

security = {
# gpg = enabled;
tools = {
bat = enabled;
direnv = enabled;
git = enabled;
lsd = enabled;
oh-my-posh = enabled;
topgrade = enabled;
};
};
};
Expand Down

0 comments on commit 2180f47

Please sign in to comment.