-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.nix
157 lines (132 loc) · 2.82 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
{ config, lib, pkgs, inputs, ... }:
let
# User and Network Settings
user = "deishuu";
networkingUsername = "kaiki";
in {
# System Configuration
imports = [
# Include the results of the hardware scan.
./hardware-configuration.nix
];
boot.loader.systemd-boot = {
enable = true;
configurationLimit = 5;
};
boot.loader.efi.canTouchEfiVariables = true;
nixpkgs.config = {
allowUnfree = true;
};
boot.kernelPackages = pkgs.linuxPackages_zen;
# Garbage Collection
nix = {
settings.auto-optimise-store = true;
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
};
# Networking
networking = {
hostName = networkingUsername;
networkManager = {
enable = true;
};
};
# Time
time = {
timeZone = "Australia/Sydney";
hardwareClockInLocalTime = true;
};
# Internationalization
i18n = {
defaultLocale = "en_US.UTF-8";
extraLocaleSettings = {
LC_TIME = "en_AU.UTF-8";
};
};
console = {
font = "Lat2-Terminus16";
keyMap = "us";
};
# Packages
environment.systemPackages = with pkgs; [
vim # Editor for configuration editing
wget
git
mpd
];
fonts.packages = with pkgs; [
font-awesome
];
users.users.${user} = {
isNormalUser = true;
extraGroups = [ "wheel" "video" "networkmanager" "lp" "scanner" ]; # Enable ‘sudo’
packages = with pkgs; [
firefox
tree
];
};
# Services
services = {
# X Server and Desktop
xserver = {
enable = true;
desktopManager.gnome = {
enable = true;
};
},
# Nvidia Specific
nvidia = {
package = config.boot.kernelPackages.nvidiaPackages.beta;
nvidiaSettings = true;
virtualisation.podman.enableNvidia = true;
hardware.nvidia.modesetting.enable = true;
},
# Sound
sound = {
enable = true;
mediaKeys.enable = true;
},
# Pipewire Audio System
pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
},
# Printing
printing = {
enable = true;
},
# Bluetooth
blueman = {
enable = true;
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
settings = {
General = {
Enable = "Source,Sink,Media,Socket";
};
};
};
},
# Desktop Portal
xdg.portal = {
enable = true;
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
},
};
# Environment Variables
environment.sessionVariables = {
WLR_NO_HARDWARE_CURSORS = "1";
NIXOS_OZONE_WL = "1";
};
# Security
security.rtkit.enable = true;
# System state version
system.stateVersion = "23.11"; # Did you read the comment?
}