Extract a dwm profile module

I've made this a module as it imports configuration from `st` and
potentially others as I continue to refactor.
This commit is contained in:
Oliver Davies 2025-04-05 09:00:00 +01:00
parent 98dccf63f0
commit ee9c85f920
10 changed files with 52 additions and 80 deletions

View file

@ -1,6 +1,5 @@
{
imports = [
./dwm.nix
./screenkey.nix
];
}

View file

@ -1,43 +0,0 @@
{
config,
lib,
pkgs,
self,
...
}:
with lib;
{
options.nixosModules.dwm.enable = mkEnableOption "Enable dwm";
config = mkIf config.nixosModules.dwm.enable {
services = {
dwm-status = {
enable = true;
order = [
"audio"
"battery"
"network"
"time"
];
};
xserver = {
displayManager.startx.enable = true;
windowManager.dwm.enable = true;
};
};
systemd.user.services.dwm-status.serviceConfig.Restart = "on-failure";
environment.systemPackages = with pkgs; [
dmenu
dmenu-bluetooth
networkmanager_dmenu
slock
xdotool
];
};
}