Skip to content

Commit

Permalink
refactor(modules): add thunar into its own module
Browse files Browse the repository at this point in the history
  • Loading branch information
InioX committed Oct 22, 2023
1 parent 3deadb3 commit 08ff53e
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hosts/laptop/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ with zenyte-lib; {
};

zenyte.desktop = {
xfce.enable = true;
# xfce.enable = true;
# awesome.enable = true;
hyprland = {
enable = true;
Expand Down
24 changes: 24 additions & 0 deletions modules/desktop/addons/thunar/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
config,
pkgs,
lib,
zenyte-lib,
configFolder,
...
}:
with lib;
with zenyte-lib; let
cfg = config.zenyte.desktop.addons.thunar;
in {
options.zenyte.desktop.addons.thunar = {
enable = mkBoolOpt false "Whether to enable thunar.";
};

config = mkIf cfg.enable {
programs.thunar.enable = true;
programs.thunar.plugins = with pkgs.xfce; [
thunar-archive-plugin
thunar-volman
];
};
}
3 changes: 3 additions & 0 deletions modules/desktop/hyprland/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ in {
];

config = mkIf cfg.enable {
programs.hyprland.enable = true;

environment.systemPackages = with pkgs; [
wl-clipboard
grim
Expand All @@ -48,6 +50,7 @@ in {
dunst.enable = true;
matugen.enable = true;
ags.enable = true;
thunar.enable = true;
};

zenyte.cli = {
Expand Down

0 comments on commit 08ff53e

Please sign in to comment.