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
|
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, lib, secrets, hostname, inputs, user, ... }: {
imports = [
# Include the results of the hardware scan.
./hardware.nix
];
services = {
# Configure keymap in X11
xserver.layout = "gb";
fstrim.enable = true;
logind.extraConfig = ''
# don’t shutdown when power button is short-pressed
HandlePowerKey=ignore
'';
udev.extraHwdb = ''
evdev:name:AT Translated Set 2 keyboard:*
KEYBOARD_KEY_3b=back
KEYBOARD_KEY_3c=forward
KEYBOARD_KEY_3d=refresh
KEYBOARD_KEY_3e=fullscreen
KEYBOARD_KEY_3f=switchvideomode
KEYBOARD_KEY_40=brightnessdown
KEYBOARD_KEY_41=brightnessup
KEYBOARD_KEY_42=mute
KEYBOARD_KEY_43=volumedown
KEYBOARD_KEY_44=volumeup
KEYBOARD_KEY_db=search
'';
};
# Pick only one of the below networking options.
networking = {
wireless = {
enable = true; # Enables wireless support via wpa_supplicant.
networks = secrets.wifi;
};
# networkmanager.enable = true; # Easiest to use and most distros use this by default.
# Configure network proxy if necessary
# proxy.default = "http://user:password@proxy:port/";
# proxy.noProxy = "127.0.0.1,localhost,internal.domain";
};
environment.systemPackages = with pkgs; [
xf86_input_cmt #chromebook touchpad drivers
];
nix = {
distributedBuilds = true;
# optional, useful when the builder has a faster internet connection than yours
extraOptions = "builders-use-substitutes = true";
buildMachines = [{
hostName = "builder";
system = "x86_64-linux";
# if the builder supports building for multiple architectures,
# replace the previous line by, e.g.,
# systems = ["x86_64-linux" "aarch64-linux"];
maxJobs = 4;
speedFactor = 2;
supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
mandatoryFeatures = [ ];
}];
};
}
|