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 logseq
shotwell shotwell
vscode vscode
xfce.thunar
xfce.thunar-volman
xfce.tumbler
]; ];
home-manager = { home-manager = {

View file

@ -18,8 +18,10 @@
features = { features = {
desktop = { desktop = {
autorandr.enable = true; autorandr.enable = true;
dwm.enable = true;
gaming.enable = true; gaming.enable = true;
i3.enable = true; i3.enable = true;
thunar.enable = true;
peek.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 = { services = {
dwm-status = { dwm-status = {
enable = true; enable = true;
@ -18,10 +28,13 @@
xserver.windowManager.dwm.enable = true; xserver.windowManager.dwm.enable = true;
}; };
systemd.user.services.dwm-status.serviceConfig.Restart = "on-failure";
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
dmenu dmenu
dmenu-bluetooth dmenu-bluetooth
networkmanager_dmenu networkmanager_dmenu
st st
]; ];
};
} }

View file

@ -3,5 +3,6 @@
./autorandr.nix ./autorandr.nix
./peek.nix ./peek.nix
./screenkey.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, inputs,
lib, lib,
pkgs, pkgs,
self,
username, username,
... ...
}: }: