-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.nix
116 lines (105 loc) · 2.25 KB
/
config.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
{
config,
pkgs,
...
}: {
boot = {
# Use the latest stable Linux kernel.
kernelPackages = pkgs.linuxPackages_latest;
loader = {
efi.canTouchEfiVariables = true;
systemd-boot.enable = true;
};
};
networking = {
firewall = {
enable = true;
};
useDHCP = true;
wireless.iwd = {
enable = true;
settings = {
IPv6.Enabled = true;
Settings.AutoConnect = true;
};
};
};
# Localization settings.
i18n.defaultLocale = "en_US.UTF-8";
time.timeZone = "Europe/Berlin";
# Allow unfree packages.
nixpkgs.config.allowUnfree = true;
# Nix package manager configuration.
nix = {
# Automatic garbage collection.
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
settings = {
auto-optimise-store = true;
experimental-features = [
"flakes"
"nix-command"
];
substituters = [
"https://cache.nixos.org/"
"https://nix-community.cachix.org"
];
trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};
};
hardware = {
bluetooth = {
enable = true;
powerOnBoot = true;
settings = {
General = {
Experimental = "true";
FastConnectable = "true";
};
};
};
graphics.enable = true;
xpadneo.enable = true;
};
fonts.packages = with pkgs; [
jetbrains-mono
noto-fonts
noto-fonts-cjk-sans
noto-fonts-emoji
];
# System-wide program configuration.
programs = {
neovim = {
defaultEditor = true;
enable = true;
viAlias = true;
};
nix-ld.enable = true;
};
# System-wide packages.
environment.systemPackages = with pkgs; [
fd
ripgrep
wl-clipboard
];
# System services.
services = {
envfs.enable = true;
fstrim.enable = true;
pipewire = {
enable = true;
alsa.enable = true;
pulse.enable = true;
};
};
# Enable real-time scheduling for Pipewire and Sway.
security.rtkit.enable = true;
# Do NOT change this value.
system.stateVersion = "23.11";
}