Refactor dwm and thunar configuration

This commit is contained in:
Oliver Davies 2025-01-31 11:00:29 +00:00
parent 90118dde48
commit 62e8b83df2
6 changed files with 61 additions and 24 deletions

View file

@ -42,9 +42,6 @@
logseq
shotwell
vscode
xfce.thunar
xfce.thunar-volman
xfce.tumbler
];
home-manager = {

View file

@ -18,8 +18,10 @@
features = {
desktop = {
autorandr.enable = true;
dwm.enable = true;
gaming.enable = true;
i3.enable = true;
thunar.enable = true;
peek.enable = true;
};
};

View file

@ -1,6 +1,16 @@
{ pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
with lib;
{
options.features.desktop.dwm.enable = mkEnableOption "Enable dwm";
config = mkIf config.features.desktop.dwm.enable {
services = {
dwm-status = {
enable = true;
@ -18,10 +28,13 @@
xserver.windowManager.dwm.enable = true;
};
systemd.user.services.dwm-status.serviceConfig.Restart = "on-failure";
environment.systemPackages = with pkgs; [
dmenu
dmenu-bluetooth
networkmanager_dmenu
st
];
};
}

View file

@ -3,5 +3,6 @@
./autorandr.nix
./peek.nix
./screenkey.nix
./thunar.nix
];
}

View file

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

View file

@ -3,7 +3,6 @@
inputs,
lib,
pkgs,
self,
username,
...
}: