-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.nix.backup
149 lines (121 loc) · 2.92 KB
/
configuration.nix.backup
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
{ config, ... }:
#{ ... }: {
let
#sources = import ../nix/sources.nix;
#pkgs = import sources.nixpkgs { };
pkgs = import <nixpkgs> {};
lib = pkgs.lib;
#config = pkgs.config;
in
{
imports = [
./hardware-configuration.nix
];
#boot.cleanTmpDir = true;
networking.hostName = "MacBookPro";
#networking.firewall.allowPing = true;
#services.openssh.enable = true;
#users.users.root.openssh.authorizedKeys.keys = [
# ""
#];
# Enable CUPS to print documents.
services.printing.enable = true;
# Enable sound.
sound.enable = true;
hardware.pulseaudio.enable = true;
# Enable touchpad support (enabled default in most desktopManager).
#services.xserver.libinput.enable = true;
nix = {
trustedUsers = [ "root" "sebastian" ];
};
# Define a user account. Don't forget to set a password with `passwd`.
users = {
users.sebastian = {
#shell = pkgs.bash;
#useDefaultShell = false;
isNormalUser = true;
home = "/home/sebastian";
description = "Sebastian";
extraGroups = [ "wheel" "networkmanager" ]; # Enable `sudo` for the user.
};
};
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
emacs
vim
git
wget
curl
xclip
dmidecode
pciutils usbutils
wirelesstools
networkmanager
];
boot.kernelModules = [ "wl" ];
boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"broadcom-sta"
"facetimehd-firmware"
];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# https://github.com/siraben/dotfiles/blob/master/nixos/configuration.nix #
#time.timeZone = "America/Chicago";
#networking.hostId = //TODO: unique ID?
networking.networkmanager.enable = true;
networking.nameservers = [ "1.0.0.1" "1.1.1.1" ];
fonts = {
fontDir.enable = true;
enableGhostscriptFonts = true;
fonts = with pkgs; [
emojione
noto-fonts
noto-fonts-cjk
noto-fonts-extra
inconsolata
material-icons
liberation_ttf
dejavu_fonts
terminus_font
siji
unifont
];
fontconfig.defaultFonts = {
monospace = [
"Hack" #"DejaVu Sans Mono"
];
sansSerif = [
"DejaVu Sans"
"Noto Sans"
];
serif = [
"DejaVu Serif"
"Noto Serif"
];
};
};
# Etc #
environment.pathsToLink = [ "libexec" ];
services.xserver = {
enable = true;
desktopManager = {
xterm.enable = false;
};
displayManager = {
defaultSession = "none+i3";
};
windowManager.i3 = {
enable = true;
extraPackages = with pkgs; [
dmenu
i3status
i3lock
i3blocks
];
};
};
system.stateVersion = "20.09";
}