Merge branch 'master' of github.com:IvanMalison/dotfiles
This commit is contained in:
commit
e9baf26a9e
1
dotfiles/config/taffybar/cabal.project
Normal file
1
dotfiles/config/taffybar/cabal.project
Normal file
@ -0,0 +1 @@
|
|||||||
|
packages: . taffybar/
|
@ -33,8 +33,6 @@ executable imalison-taffybar
|
|||||||
, taffybar>=3.2.0
|
, taffybar>=3.2.0
|
||||||
, transformers
|
, transformers
|
||||||
, xdg-basedir
|
, xdg-basedir
|
||||||
, xmonad-contrib>=0.13
|
|
||||||
, xmonad>=0.13
|
|
||||||
default-language: Haskell2010
|
default-language: Haskell2010
|
||||||
|
|
||||||
source-repository head
|
source-repository head
|
||||||
|
7
dotfiles/config/taffybar/shell.nix
Normal file
7
dotfiles/config/taffybar/shell.nix
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
let
|
||||||
|
pkgs = import <nixpkgs> { overlays = [
|
||||||
|
(import ./taffybar/overlay.nix) (import ../xmonad/overlay.nix)
|
||||||
|
]; };
|
||||||
|
source = pkgs.lib.sourceByRegex ./. ["taffybar.hs" "imalison-taffybar.cabal"];
|
||||||
|
imalison-taffybar = pkgs.haskellPackages.callCabal2nix "imalison-taffybar" source { };
|
||||||
|
in pkgs.haskellPackages.shellFor { packages = _: [imalison-taffybar pkgs.haskellPackages.taffybar]; }
|
@ -1 +1 @@
|
|||||||
Subproject commit 397a85cbb712235624f402a3f1157a3c637f0aab
|
Subproject commit cb09a5d1c5ee7af55c627175373fb1ea469d651e
|
@ -202,7 +202,7 @@ main = do
|
|||||||
)
|
)
|
||||||
]
|
]
|
||||||
simpleTaffyConfig = selectedConfig
|
simpleTaffyConfig = selectedConfig
|
||||||
{ centerWidgets = map (>>= buildContentsBox) []
|
{ centerWidgets = []
|
||||||
-- , endWidgets = []
|
-- , endWidgets = []
|
||||||
-- , startWidgets = []
|
-- , startWidgets = []
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,4 @@
|
|||||||
module PagerHints (
|
module PagerHints where
|
||||||
-- * Usage
|
|
||||||
-- $usage
|
|
||||||
pagerHints
|
|
||||||
) where
|
|
||||||
|
|
||||||
import Codec.Binary.UTF8.String (encode)
|
import Codec.Binary.UTF8.String (encode)
|
||||||
import Control.Monad
|
import Control.Monad
|
||||||
@ -66,9 +62,9 @@ setVisibleWorkspaces vis = withDisplay $ \dpy -> do
|
|||||||
-- | Handle all \"Current Layout\" events received from pager widgets, and
|
-- | Handle all \"Current Layout\" events received from pager widgets, and
|
||||||
-- set the current layout accordingly.
|
-- set the current layout accordingly.
|
||||||
pagerHintsEventHook :: Event -> X All
|
pagerHintsEventHook :: Event -> X All
|
||||||
pagerHintsEventHook ClientMessageEvent {
|
pagerHintsEventHook ClientMessageEvent
|
||||||
ev_message_type = mt,
|
{ ev_message_type = mt
|
||||||
ev_data = d
|
, ev_data = d
|
||||||
} = withWindowSet $ \_ -> do
|
} = withWindowSet $ \_ -> do
|
||||||
a <- xLayoutProp
|
a <- xLayoutProp
|
||||||
when (mt == a) $ sendLayoutMessage d
|
when (mt == a) $ sendLayoutMessage d
|
||||||
|
@ -1,12 +1,8 @@
|
|||||||
_: pkgs: rec {
|
_: pkgs: rec {
|
||||||
haskellPackages = pkgs.haskellPackages.override (old: {
|
haskellPackages = pkgs.haskellPackages.override (old: {
|
||||||
overrides = pkgs.lib.composeExtensions (old.overrides or (_: _: {})) (self: super: rec {
|
overrides = pkgs.lib.composeExtensions (old.overrides or (_: _: {})) (self: super: rec {
|
||||||
xmonad = super.xmonad.overrideAttrs (_: {
|
xmonad = self.callCabal2nix "xmonad" (fetchGit ./xmonad) { };
|
||||||
src = fetchGit ./xmonad;
|
xmonad-contrib = self.callCabal2nix "xmonad-contrib" (fetchGit ./xmonad-contrib) { };
|
||||||
});
|
|
||||||
xmonad-contrib = super.xmonad-contrib.overrideAttrs (_: {
|
|
||||||
src = fetchGit ./xmonad-contrib;
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit f10399096794addfd121f014b687a0298354f410
|
Subproject commit 3239bf74cf85794be2e427a3fb2518738d613866
|
@ -361,7 +361,7 @@ selectLayout = myDmenu layoutNames >>= (sendMessage . JumpToLayout)
|
|||||||
|
|
||||||
myLayoutHook =
|
myLayoutHook =
|
||||||
avoidStruts .
|
avoidStruts .
|
||||||
minimize .
|
minimizeNoDescription .
|
||||||
boringAuto .
|
boringAuto .
|
||||||
mkToggle1 MIRROR .
|
mkToggle1 MIRROR .
|
||||||
mkToggle1 LIMIT .
|
mkToggle1 LIMIT .
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
#!/usr/bin/env zsh
|
|
||||||
# -*- mode:sh
|
|
||||||
|
|
||||||
cd "$HOME/.config/taffybar"
|
|
||||||
stack install
|
|
||||||
|
|
||||||
if command_exists "imalison-taffybar"; then
|
|
||||||
imalison-taffybar "$@"
|
|
||||||
else
|
|
||||||
# Move .lib/bin to the end of PATH so that this script is not called again
|
|
||||||
add_to_path "$HOME/.lib/bin" --after
|
|
||||||
taffybar "$@"
|
|
||||||
fi
|
|
@ -15,6 +15,7 @@ let
|
|||||||
virtualenvwrapper
|
virtualenvwrapper
|
||||||
];
|
];
|
||||||
python-with-my-packages = pkgs.python3.withPackages my-python-packages;
|
python-with-my-packages = pkgs.python3.withPackages my-python-packages;
|
||||||
|
all-hies = import (fetchTarball "https://github.com/infinisil/all-hies/tarball/master") {};
|
||||||
taffySource = pkgs.lib.sourceByRegex ../dotfiles/config/taffybar [
|
taffySource = pkgs.lib.sourceByRegex ../dotfiles/config/taffybar [
|
||||||
"taffybar.hs" "imalison-taffybar.cabal"
|
"taffybar.hs" "imalison-taffybar.cabal"
|
||||||
];
|
];
|
||||||
@ -84,6 +85,7 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
xdg.menus.enable = true;
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|
||||||
# Applications
|
# Applications
|
||||||
@ -121,7 +123,7 @@ in
|
|||||||
plasma5.breeze-qt5
|
plasma5.breeze-qt5
|
||||||
gnome-breeze
|
gnome-breeze
|
||||||
|
|
||||||
# Desktop
|
# Haskell Desktop
|
||||||
(haskellPackages.callCabal2nix "imalison-taffybar" taffySource { })
|
(haskellPackages.callCabal2nix "imalison-taffybar" taffySource { })
|
||||||
(haskellPackages.callCabal2nix "imalison-xmonad" xmonadSource { })
|
(haskellPackages.callCabal2nix "imalison-xmonad" xmonadSource { })
|
||||||
(ntiHaskellPackages.callCabal2nix "notifications-tray-icon" notifications-tray-icon-source { })
|
(ntiHaskellPackages.callCabal2nix "notifications-tray-icon" notifications-tray-icon-source { })
|
||||||
@ -130,6 +132,8 @@ in
|
|||||||
haskellPackages.xmonad
|
haskellPackages.xmonad
|
||||||
haskellPackages.taffybar
|
haskellPackages.taffybar
|
||||||
|
|
||||||
|
# Desktop
|
||||||
|
taffybar
|
||||||
autorandr
|
autorandr
|
||||||
betterlockscreen
|
betterlockscreen
|
||||||
blueman
|
blueman
|
||||||
@ -173,6 +177,8 @@ in
|
|||||||
ghc
|
ghc
|
||||||
stack
|
stack
|
||||||
haskellPackages.hasktags
|
haskellPackages.hasktags
|
||||||
|
haskellPackages.hoogle
|
||||||
|
(all-hies.selection { selector = p: { inherit (p) ghc864; }; })
|
||||||
|
|
||||||
# Scala
|
# Scala
|
||||||
sbt
|
sbt
|
||||||
@ -248,6 +254,7 @@ in
|
|||||||
|
|
||||||
# Nix
|
# Nix
|
||||||
nix-prefetch-git
|
nix-prefetch-git
|
||||||
|
cachix
|
||||||
|
|
||||||
# Miscellaneous
|
# Miscellaneous
|
||||||
android-udev-rules
|
android-udev-rules
|
||||||
|
@ -4,13 +4,16 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports =
|
imports = [
|
||||||
[ <nixpkgs/nixos/modules/installer/scan/not-detected.nix>
|
<nixpkgs/nixos/modules/installer/scan/not-detected.nix>
|
||||||
../configuration.nix
|
../configuration.nix
|
||||||
../extra.nix
|
../extra.nix
|
||||||
../dfinity.nix
|
../dfinity.nix
|
||||||
|
/etc/nixos/cachix.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
hardware.bumblebee.enable = true;
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "usbhid" "sd_mod" ];
|
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "usbhid" "sd_mod" ];
|
||||||
boot.kernelModules = [ "kvm-intel" ];
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
boot.extraModulePackages = [ ];
|
boot.extraModulePackages = [ ];
|
||||||
@ -22,15 +25,15 @@
|
|||||||
services.tlp.enable = true;
|
services.tlp.enable = true;
|
||||||
services.acpid.enable = false;
|
services.acpid.enable = false;
|
||||||
|
|
||||||
fileSystems."/" =
|
fileSystems."/" = {
|
||||||
{ device = "/dev/disk/by-uuid/58218a04-3ba1-4295-86bb-ada59f75e3b6";
|
device = "/dev/disk/by-uuid/58218a04-3ba1-4295-86bb-ada59f75e3b6";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
boot.initrd.luks.devices."cryptroot".device = "/dev/disk/by-uuid/8142784e-45c6-4a2b-91f1-09df741ac00f";
|
boot.initrd.luks.devices."cryptroot".device = "/dev/disk/by-uuid/8142784e-45c6-4a2b-91f1-09df741ac00f";
|
||||||
|
|
||||||
fileSystems."/boot" =
|
fileSystems."/boot" = {
|
||||||
{ device = "/dev/disk/by-uuid/36E1-BE93";
|
device = "/dev/disk/by-uuid/36E1-BE93";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user