Extract a thunar mixin

This commit is contained in:
Oliver Davies 2025-04-05 09:00:00 +01:00
parent 0ff85547a8
commit 6d744eb2ed
4 changed files with 14 additions and 26 deletions
hosts/t480
modules

View file

@ -10,6 +10,7 @@
../../modules/mixins/bluetooth.nix
../../modules/mixins/docker.nix
../../modules/mixins/phpactor
../../modules/mixins/thunar.nix
../common
../../users/opdavies
@ -19,7 +20,6 @@
dwm.enable = true;
redshift.enable = true;
st.enable = true;
thunar.enable = true;
peek.enable = true;
};

13
modules/mixins/thunar.nix Normal file
View file

@ -0,0 +1,13 @@
{ pkgs, ... }:
{
programs.thunar = {
enable = true;
plugins = with pkgs.xfce; [
thunar-archive-plugin
];
};
environment.systemPackages = with pkgs; [ xfce.tumbler ];
}

View file

@ -4,6 +4,5 @@
./peek.nix
./screenkey.nix
./st.nix
./thunar.nix
];
}

View file

@ -1,24 +0,0 @@
{
config,
lib,
pkgs,
...
}:
with lib;
{
options.nixosModules.thunar.enable = mkEnableOption "Enable thunar";
config = mkIf config.nixosModules.thunar.enable {
programs.thunar = {
enable = true;
plugins = with pkgs.xfce; [
thunar-archive-plugin
];
};
environment.systemPackages = with pkgs; [ xfce.tumbler ];
};
}