[NixOS] Build taffybar and xmonad with nix instead of stack
This commit is contained in:
parent
d8009b4866
commit
c4bc73e45b
@ -1 +1 @@
|
|||||||
Subproject commit eb9f7b9f43898201237000b921d1224c47d7dac7
|
Subproject commit 07656d70f6bf59a4d1355243f595805b9c0a25df
|
12
dotfiles/config/xmonad/overlay.nix
Normal file
12
dotfiles/config/xmonad/overlay.nix
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
_: pkgs: rec {
|
||||||
|
haskellPackages = pkgs.haskellPackages.override (old: {
|
||||||
|
overrides = pkgs.lib.composeExtensions (old.overrides or (_: _: {})) (self: super: rec {
|
||||||
|
xmonad = super.xmonad.overrideAttrs (_: {
|
||||||
|
src = fetchGit ./xmonad;
|
||||||
|
});
|
||||||
|
xmonad-contrib = super.xmonad-contrib.overrideAttrs (_: {
|
||||||
|
src = fetchGit ./xmonad-contrib;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
@ -1,7 +1,6 @@
|
|||||||
{ config, pkgs, options, ... }:
|
{ config, pkgs, options, ... }:
|
||||||
let
|
let
|
||||||
all-hies = import (fetchTarball "https://github.com/infinisil/all-hies/tarball/master") {};
|
all-hies = import (fetchTarball "https://github.com/infinisil/all-hies/tarball/master") {};
|
||||||
my-overlays = import ./overlays.nix;
|
|
||||||
my-python-packages = python-packages: with python-packages; [
|
my-python-packages = python-packages: with python-packages; [
|
||||||
appdirs
|
appdirs
|
||||||
ipdb
|
ipdb
|
||||||
@ -17,10 +16,17 @@ let
|
|||||||
virtualenvwrapper
|
virtualenvwrapper
|
||||||
];
|
];
|
||||||
python-with-my-packages = pkgs.python3.withPackages my-python-packages;
|
python-with-my-packages = pkgs.python3.withPackages my-python-packages;
|
||||||
|
taffySource = pkgs.lib.sourceByRegex ../dotfiles/config/taffybar [
|
||||||
|
"taffybar.hs" "imalison-taffybar.cabal"
|
||||||
|
];
|
||||||
|
xmonadSource = ../dotfiles/config/xmonad;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixpkgs.overlays = [ my-overlays ];
|
nixpkgs.overlays = [
|
||||||
# XXX: This ensures that all nix tools pick up the overlays that are set here
|
(import ./overlays.nix)
|
||||||
|
(import ../dotfiles/config/taffybar/taffybar/overlay.nix)
|
||||||
|
(import ../dotfiles/config/xmonad/overlay.nix)
|
||||||
|
];
|
||||||
|
|
||||||
# Allow all the things
|
# Allow all the things
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
@ -106,7 +112,9 @@ in
|
|||||||
gnome-breeze
|
gnome-breeze
|
||||||
|
|
||||||
# Desktop
|
# Desktop
|
||||||
# haskellPackages.status-notifier-item
|
(haskellPackages.callCabal2nix "imalison-taffybar" taffySource { })
|
||||||
|
(haskellPackages.callCabal2nix "imalison-xmonad" xmonadSource { })
|
||||||
|
haskellPackages.status-notifier-item
|
||||||
autorandr
|
autorandr
|
||||||
betterlockscreen
|
betterlockscreen
|
||||||
blueman
|
blueman
|
||||||
|
Loading…
Reference in New Issue
Block a user