forked from colonelpanic/dotfiles
[NixOS] Move xmonad config into its own module
This commit is contained in:
37
nixos/xmonad.nix
Normal file
37
nixos/xmonad.nix
Normal file
@@ -0,0 +1,37 @@
|
||||
{ config, pkgs, options, inputs, ... }:
|
||||
{
|
||||
nixpkgs.overlays = with inputs; [
|
||||
xmonad.overlay
|
||||
xmonad-contrib.overlay
|
||||
notifications-tray-icon.overlay
|
||||
(import ../dotfiles/config/xmonad/overlay.nix)
|
||||
] ++ taffybar.overlays;
|
||||
|
||||
services.xserver = {
|
||||
windowManager = {
|
||||
session = [
|
||||
{
|
||||
name = "xmonad";
|
||||
start = ''
|
||||
/usr/bin/env imalison-xmonad &
|
||||
waitPID=$!
|
||||
'';
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
# Haskell Desktop
|
||||
haskellPackages.xmonad
|
||||
haskellPackages.imalison-xmonad
|
||||
haskellPackages.notifications-tray-icon
|
||||
haskellPackages.gtk-sni-tray
|
||||
haskellPackages.status-notifier-item
|
||||
haskellPackages.dbus-hslogger
|
||||
];
|
||||
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users.imalison = (import ./home-manager.nix) inputs;
|
||||
}
|
||||
Reference in New Issue
Block a user