stockholm/krebs/3modules/upstream/window-managers/default.nix
tv 6e9f5602a9 nixos/xmonad: import and make reloadable
Import nixos/modules/services/x11/window-managers/xmonad.nix from
nixpkgs de121de16ef947bc8e8bfdaa37b5c6cc506050c6 and turn it into
a user service that reloads xmonad whenever its configuration changes.
2021-01-26 20:54:47 +01:00

23 lines
753 B
Nix

{
imports = [
# Replace upstream xmonad module with one that will be reloaded if changed.
#
# This module is intended to be upstreamed once fully tested.
# The patch to be committed can be obtained using:
#
# diff -u <nixpkgs/nixos/modules/services/x11/window-managers/xmonad.nix> \
# <stockholm/tv/3modules/window-managers/xmonad.nix>
#
{
disabledModules = [ "services/x11/window-managers/xmonad.nix" ];
imports = [ ./xmonad.nix ];
nixpkgs.overlays = [(self: super: {
writers = super.writers // {
writeHaskellBin = name: spec: with import <stockholm/lib>;
super.writers.writeHaskellBin name (removeAttrs spec ["ghcArgs"]);
};
})];
}
];
}