about summary refs log tree commit diff
path: root/modules/larbs.nix
blob: 0420b469aade1029a0359b825ff38a7481eb85ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{ pkgs, ... }:
let
  xwallpaper = (import (pkgs.fetchzip {
    url = "https://github.com/nixos/nixpkgs/archive/7138a338b58713e0dea22ddab6a6785abec7376a.zip";
    sha256 = "sha256:1asgl1hxj2bgrxdixp3yigp7xn25m37azwkf3ppb248vcfc5kil3";
  }) { }).xwallpaper;
  pnvim = import ../pkgs/nvim.nix pkgs;
  pndwm = import ../pkgs/dwm pkgs;
  pndwmblocks = import ../pkgs/dwmblocks pkgs;
  todos = import ../pkgs/dwmblocks/todos.nix pkgs;
  larbs-packages = with pkgs.nur.repos.pn; [
    pnvim
    larbs-mail
    # larbs-news
    (larbs-music.override { musicDir = "~/music"; })
    dmenu
    pndwm
    pndwmblocks
    larbs-scripts
    (st.override { conf = ../pkgs/st.config.h; } )
  ];

  grap = pkgs.symlinkJoin {
    name = "grap";
    paths = [ pkgs.plan9port ];
    postBuild = ''
      ln -s ${pkgs.plan9port}/plan9/bin/grap $out/bin/grap
    '';
  };
in
{
  imports = [
    ./personal.nix
    ./audio.nix
    ./slock.nix
  ];

  gtk.iconCache.enable = true;

  environment.shellAliases = {
    cmus = "screen -q -r -D cmus || screen -S cmus /run/current-system/sw/bin/cmus";
  };

  environment.systemPackages = with pkgs; [
    ## Scripts utils
    #TODO: move to larbs-scripts
    newsboat
    maim
    xclip
    xdotool
    lm_sensors
    mpc_cli
    python3Packages.pywal
    xwallpaper
    xcompmgr
    screen

    cmus

    grap
    nur.repos.pn.groff

    hicolor-icon-theme
    gnome3.adwaita-icon-theme

    playerctl

    todos
    brave
    tdesktop
  ] ++ larbs-packages;

  environment.variables = {
    TERM = "st";
    TERMINAL = "st";
    BROWSER = "brave";
    GTK_THEME = "Adwaita:dark";
  };

  services.xserver = {
    enable = true;
    displayManager.startx.enable = true;
    libinput.enable = true;
  };

}