Skip to content

Commit

Permalink
📦 Added some packages to get file metadata and killall
Browse files Browse the repository at this point in the history
Also disabled a broken Vencord plugin
  • Loading branch information
theobori committed Nov 26, 2024
1 parent b4a08e4 commit 46100cf
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 2 deletions.
26 changes: 26 additions & 0 deletions modules/home/cli/programs/file-tools/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
pkgs,
config,
lib,
namespace,
...
}:
let
inherit (lib) mkIf;
inherit (lib.${namespace}) mkBoolOpt;

cfg = config.${namespace}.cli.programs.file-tools;
in
{
options.${namespace}.cli.programs.file-tools = {
enable = mkBoolOpt false "Whether or not to enable file-tools.";
};

config = mkIf cfg.enable {
home.packages = with pkgs; [
file
mediainfo
mediainfo-gui
];
};
}
20 changes: 20 additions & 0 deletions modules/home/cli/programs/killall/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
pkgs,
config,
lib,
namespace,
...
}:
let
inherit (lib) mkIf;
inherit (lib.${namespace}) mkBoolOpt;

cfg = config.${namespace}.cli.programs.killall;
in
{
options.${namespace}.cli.programs.killall = {
enable = mkBoolOpt false "Whether or not to enable killall.";
};

config = mkIf cfg.enable { home.packages = with pkgs; [ killall ]; };
}
3 changes: 2 additions & 1 deletion modules/home/messages/discord/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ in
config = mkOpt attrs {
useQuickCss = ((trimWith' cfg.quickCss) != "");
plugins = {
betterFolders = enabled;
# Broken for the moment
betterFolders = disabled;
betterRoleContext = enabled;
crashHandler = enabled;
memberCount = enabled;
Expand Down
2 changes: 2 additions & 0 deletions modules/home/roles/common/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ in
programs = {
home-manager = enabled;
dua = enabled;
killall = enabled;
file-tools = enabled;
};
};

Expand Down
1 change: 0 additions & 1 deletion modules/home/roles/desktop/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ in
pamixer
playerctl
flameshot
grimblast
slurp
xorg.xkill
];
Expand Down

0 comments on commit 46100cf

Please sign in to comment.