summaryrefslogtreecommitdiff
path: root/home/default.nix
blob: 0afdc7c01e5d92a0cdfb775d032716a69b99c994 (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
{ lib, config, pkgs, ... }:
with lib; {
  imports = [
    ./desktop.nix
    ./environ.nix
    ./graphics.nix
    ./isolation.nix
    ./mail
    ./path.nix
  ];

  options.local.workstation = with lib.types; mkOption {
    type = bool;
  };

  config = {
    nix.registry."system".to = {
      type = "path";
      path = "${config.home.homeDirectory}/nix";
    };

    home = {
      # This value determines the Home Manager release that your
      # configuration is compatible with. This helps avoid breakage
      # when a new Home Manager release introduces backwards
      # incompatible changes.
      #
      # You can update Home Manager without changing this value. See
      # the Home Manager release notes for a list of state version
      # changes in each release.
      stateVersion = "21.11";

      username = "ale";
      homeDirectory = "/home/${config.home.username}";

      sessionVariables = {
        EDITOR = "nvim";
        LESSHISTFILE = "/dev/null";

        # Usar gtk en aplicaciones de jvm
        _JAVA_OPTIONS = concatStringsSep " " [
          "-Dawt.useSystemAAFontSettings=on"
          "-Dswing.aatext=true"
          "-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel"
          "-Dswing.crossplatformlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel"
        ];
      };

      language.base = "es_CR.UTF-8";
    };

    programs.home-manager.enable = true;
  };
}