summaryrefslogtreecommitdiffstats
path: root/hosts/jonbox/default.nix
blob: ce5f4a3df3ed5ff4013654d7068e18416f7d2ad5 (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
36
37
38
39
40
41
42
43
{ config, lib, pkgs, stateVersion, ... }:

{
    imports = [
        ./hardware.nix
        ../../modules/hardware/bluetooth.nix
        ../../modules/virt
    ];

    #Boot options
    boot = {
        loader = {
            systemd-boot = {
                enable = true;
                configurationLimit = 8;
            };
            efi.canTouchEfiVariables = true;
            timeout = 5;
        };
        kernelPackages = pkgs.linuxPackages_latest;
    };

    #Unfree-packages.
    nixpkgs.config.allowUnfreePredicate = pkg:
        builtins.elem (lib.getName pkg) [
        "nvidia-x11"
        "nvidia-settings"
        "nvidia-persistenced"
    ];

    #OpenGL
    hardware.opengl = {
        enable = true;
        driSupport = true;
        driSupport32Bit = true;
    };
  
    #X11 Server
    services.xserver.videoDrivers = [ "nvidia" ];

    awesome.enable = true;
    mullvad-vpn.enable = true;
}