summaryrefslogtreecommitdiff
path: root/nodes/work/home-manager.nix
blob: c0d94bfa9a22258458709f93261eaa9ef496f7a9 (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
{ lib, pkgs, inputs, ... }:
{
  home-manager.useGlobalPkgs = true;
  home-manager.useUserPackages = true;
  home-manager.extraSpecialArgs = { inherit inputs; };
  home-manager.users.jras = {
    imports = [
      ../../modules/home-manager/core
      ../../modules/home-manager/hyprland.nix
      ../../modules/home-manager/hostnet.nix
      ../../modules/home-manager/php.nix
      ../../modules/home-manager/ansible.nix
      ../../modules/home-manager/python.nix
    ];

    home.username = "jras";
    home.homeDirectory = "/home/jras";
    home.stateVersion = "22.11";
    home.sessionPath = [ "$HOME/.local/bin" ];

    home.packages = with pkgs; [
      slack
      moonlight-qt
      brightnessctl
      google-chrome
    ];

    programs.git = {
      userName = "Jasper Ras";
      userEmail = lib.mkForce "jras@hostnet.nl";
      extraConfig = { gitreview.username = "jrasper"; };
      ignores = [
        ".direnv"
        ".envrc"
        ".project"
        ".settings/"
        ".buildpath"
        "tags"
        ".hhconfig"
        ".DS_Store"
        ".idea/"
        ".vagrant/"
        "*.swp"
        "clover.xml"
        "yarn-error.log"
        "gsuite-auth.json"
        "venv/"
        "shell.nix"

        ".devenv*"
        "devenv*"
        ".pre-commit-config.yaml"
      ];
    };

    programs.zsh.initExtra = ''
      eval "$(dircolors)"
    '';
    programs.zsh.shellAliases = {
      ssh = "TERM=xterm-256color ssh";
    };

    programs.pyenv.enable = true;
    programs.pyenv.enableZshIntegration = true;
    programs.ssh = {
      controlMaster = "auto";
      controlPersist = "12h";
      serverAliveInterval = 11;
      matchBlocks = {
        "*.g1i.one".user = "jasras";
        "*.os1.openstack.group.one".user = "jasras";
        "*.one.com".user = "jasras";
        "91.184.16.185".port = 12345;
        "*.compute.prv.vps1-testpod-cph3.one.com".forwardAgent = true;
        "access.*.one.com".forwardAgent = true;
        "access.*.g1i.one".forwardAgent = true;
      };
    };
  };
}