dotfiles/nixos/hm-modules/xmonad/default.nix

18 lines
479 B
Nix
Raw Normal View History

{ nixpkgs, nixpkgs-unstable, nixpkgs-master, custom, hostname, rlib }:
{ config, lib, ... }:
2021-01-24 17:43:50 +01:00
{
home.packages = with nixpkgs; [
powerline-fonts
font-awesome
dejavu_fonts
];
home.file.".xmonad/xmonad.hs".source = let
vars = {
xmobar = "${nixpkgs.xmobar}/bin/xmobar";
2021-01-24 17:43:50 +01:00
xmobarConfig = ./xmobarrc;
screenshot = "${custom.screenshot}/bin/screenshot";
2021-01-24 17:43:50 +01:00
};
in with rlib; substitute nixpkgs.runCommandNoCCLocal "xmonad.hs" ./xmonad.hs vars;
}