about summary refs log tree commit diff
path: root/users/fcuny/desktop/default.nix
blob: 3a1e21ab95d726d57c557338de05094e75d3f424 (plain) (blame)
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
{ config, lib, pkgs, ... }:

{
  imports = [
    ./browser.nix
    ./i3.nix
    ./media.nix
    ./pass.nix
    ./terminal.nix
    ./gtk.nix
    ./xdg.nix
    ./trust
  ];

  home.packages = [
    pkgs.gnome3.eog
    pkgs.gnome3.evince
    pkgs.gnome3.nautilus
    pkgs.transmission-remote-gtk
  ];

  environment = {
    sessionVariables = {
      TERMINAL = [ "alacritty" ];
      TERM = [ "xterm-256color" ];
    };

    # Activate home-manager environment, if not already enabled
    loginShellInit = ''
      [ -d "$HOME/.nix-profile" ] || /nix/var/nix/profiles/per-user/$USER/home-manager/activate &> /dev/null
    '';
    homeBinInPath = true;
    localBinInPath = true;
  };
}