aboutsummaryrefslogtreecommitdiff
path: root/gui/apps/file.nix
blob: 98228b457c8374ab31fcbcf09e5b613bcdcddff3 (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
{ pkgs, ... }:

{
  home = {
    packages = let
      custom-sxiv = import ./sxiv.nix pkgs;
      unstable = import <nixpkgs-unstable> {};
    in with pkgs; [
    # browser
      pcmanfm
      unstable.nnn file
    # automounting
      gvfs lxmenu-data shared_mime_info
    # tools
      veracrypt
    # viewers
      evince
      custom-sxiv
      mpv
      libreoffice
    ];

    sessionVariables = {
      # required to enable auto-mounting in pcmanfm
      GIO_EXTRA_MODULES = [ "${pkgs.gvfs}/lib/gio/modules" ];
      # use GTK theme in libreoffice
      SAL_USE_VCLPLUGIN = "gtk";
      # NNN: display folders in bright green
      NNN_CONTEXT_COLORS = "2222";
      # NNN: open all text files in $EDITOR
      NNN_USE_EDITOR = 1;
    };

    file.".config/user-dirs.dirs".text = ''
      XDG_TEMPLATES_DIR="$HOME/"
      XDG_DESKTOP_DIR="$HOME/"
      XDG_DOWNLOADS_DIR="$HOME/downloads/"
    '';
  };
}