-
Notifications
You must be signed in to change notification settings - Fork 1
/
configuration.nix
171 lines (151 loc) · 3.57 KB
/
configuration.nix
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
{ nixpkgs, pkgs, lib, ... }:
let
font-awesome = pkgs.fetchFromGitHub {
owner = "FortAwesome";
repo = "Font-Awesome";
rev = "6.1.1";
sha256 = "BjK1PJQFWtKDvfQ2Vh7BoOPqYucyvOG+2Pu/Kh+JpAA=";
postFetch = ''
tar xf $downloadedFile --strip=1
install -m444 -Dt $out/share/fonts/opentype {fonts,otfs}/*.otf
'';
};
in
{
imports = [
./hardware-configuration.nix
./programs/ergodox/udev-rules.nix
./cachix.nix
# <home-manager/nixos>
(import /home/soywod/code/home-manager/nixos)
];
nix = {
package = pkgs.nixFlakes;
extraOptions = ''
experimental-features = nix-command flakes
keep-outputs = true
keep-derivations = true
'';
};
# environment.etc = {
# "pipewire/pipewire.conf.d/combine-sink.conf".text = ''
# context.exec = [
# { path = "pactl" args = "load-module module-combine-sink" }
# ]
# '';
# };
boot = {
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
kernel.sysctl = {
"fs.inotify.max_user_watches" = 1048576;
"fs.inotify.max_user_instances" = 1024;
"fs.inotify.max_queued_events" = 32768;
};
};
services.avahi.enable = true;
services.resolved.enable = true;
networking = {
hostName = "soywod";
networkmanager = {
enable = true;
connectionConfig."connection.mdns" = 2;
};
};
time.timeZone = "Europe/Paris";
i18n = {
supportedLocales = [ "fr_FR.UTF-8/UTF-8" ];
defaultLocale = "fr_FR.UTF-8";
extraLocaleSettings = {
LANGUAGE = "fr_FR.UTF-8";
LC_CTYPE = "fr_FR.UTF-8";
LC_NUMERIC = "fr_FR.UTF-8";
LC_TIME = "fr_FR.UTF-8";
LC_COLLATE = "fr_FR.UTF-8";
LC_MONETARY = "fr_FR.UTF-8";
LC_MESSAGES = "fr_FR.UTF-8";
LC_PAPER = "fr_FR.UTF-8";
LC_NAME = "fr_FR.UTF-8";
LC_ADDRESS = "fr_FR.UTF-8";
LC_TELEPHONE = "fr_FR.UTF-8";
LC_MEASUREMENT = "fr_FR.UTF-8";
LC_IDENTIFICATION = "fr_FR.UTF-8";
};
};
console = {
font = "latarcyrheb-sun32";
keyMap = "dvorak";
};
fonts = {
packages = with pkgs; [
noto-fonts
noto-fonts-cjk
noto-fonts-emoji
jetbrains-mono
font-awesome
];
fontconfig = {
defaultFonts = {
serif = [ "Noto Serif" ];
sansSerif = [ "Noto Sans" ];
monospace = [ "JetBrains Mono" "Font Awesome" ];
};
};
};
sound = {
enable = true;
};
hardware = {
pulseaudio = {
enable = false;
};
bluetooth = {
enable = true;
settings = {
General = {
Enable = "Source,Sink,Media,Socket";
};
};
};
opengl = {
enable = true;
};
};
virtualisation = {
docker.enable = true;
};
services.getty.autologinUser = "soywod";
home-manager.users.soywod = import ./home.nix;
users.users.soywod = {
isNormalUser = true;
hashedPassword = "$6$LMKJHJSxnGOwEwuF$KJQLQcOkXlHWkGWp7Z4/eXetRoVnuiSOv2Rl6BNtEhpgpX2b/Ky5ELHYL3Q0kQbERSKiMWfEmDXLAOX6fAivg0";
extraGroups = [ "wheel" "networkmanager" "video" "docker" ];
shell = pkgs.bash;
};
security = {
sudo.wheelNeedsPassword = false;
rtkit.enable = true;
};
services.pipewire = {
enable = true;
alsa = {
enable = true;
support32Bit = true;
};
pulse.enable = true;
};
xdg = {
portal = {
enable = true;
wlr.enable = true;
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
config.common.default = "*";
};
};
services.geoclue2 = {
enable = true;
};
system.stateVersion = "21.05";
}