dots-of-war/files/nix-stuff/nixpkgs/modules/desktop.nix

72 lines
1.4 KiB
Nix
Raw Normal View History

2020-08-09 18:32:27 +00:00
{ config, lib, pkgs, ... }:
let
2020-08-16 21:05:10 +00:00
cfg = config.elkowar.desktop;
2020-08-09 18:32:27 +00:00
in
{
2020-08-16 21:05:10 +00:00
options.elkowar.desktop = {
2020-08-09 18:32:27 +00:00
enable = lib.mkEnableOption "Desktop configuration enabled";
};
2020-08-16 21:05:10 +00:00
imports = [ ./desktop ];
2020-08-09 18:32:27 +00:00
config = lib.mkIf cfg.enable {
2020-08-11 14:25:46 +00:00
2020-08-09 18:32:27 +00:00
home.packages = with pkgs; [
2020-08-16 21:05:10 +00:00
(pkgs.callPackage ../packages/bashtop.nix { })
(pkgs.callPackage ../packages/liquidctl.nix { })
(pkgs.callPackage ../packages/scr.nix { })
2020-08-18 13:20:00 +00:00
#(pkgs.callPackage ../packages/boox.nix { })
2020-08-16 21:43:41 +00:00
(pkgs.callPackage ../packages/mmutils.nix { })
2020-08-09 18:32:27 +00:00
cool-retro-term
gromit-mpx
2020-08-16 21:05:10 +00:00
dragon-drop
2020-08-18 13:20:00 +00:00
polybarFull
discord
2020-08-16 21:05:10 +00:00
#simplescreenrecorder
2020-08-09 18:32:27 +00:00
#hyper-haskell
];
2020-08-16 21:05:10 +00:00
elkowar.desktop = {
gtk.enable = true;
};
elkowar.programs = {
alacritty.enable = true;
rofi.enable = true;
};
programs = {
2020-08-09 18:32:27 +00:00
mpv = {
enable = true;
bindings = {
WHEEL_UP = "add volume 5";
WHEEL_DOWN = "add volume -5";
WHEEL_LEFT = "seek -3";
WHEEL_RIGHT = "seek 3";
h = "seek -3";
l = "seek 3";
};
};
2020-08-16 21:05:10 +00:00
feh = {
enable = true;
keybindings = { zoom_in = "plus"; zoom_out = "minus"; };
};
2020-08-09 18:32:27 +00:00
};
services = {
mpd = {
enable = true;
musicDirectory = "/home/leon/Downloads/music";
};
udiskie.enable = true;
};
};
}