-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.nix
150 lines (128 loc) · 3.13 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
# 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, ... }:
let
user = "justin";
in
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];
#Bootloader Configuration
time.hardwareClockInLocalTime = true;
boot.loader = {
efi = {
canTouchEfiVariables = true;
efiSysMountPoint = "/EFI";
};
grub = {
devices = ["nodev"];
efiSupport = true;
enable = true;
extraEntries = ''
menuentry "Windows" {
insmod part_gpt
insmod fat
insmod search_fs_uuid
insmod chain
search --fs-uuid --set=root 9468-6FFE
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
'';
};
};
#Networking Configuration
networking.hostName = "nixos"; # Define your hostname.
#networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
networking.dhcpcd.enable = true;
# Set your time zone.
time.timeZone = "America/New_York";
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
nixpkgs.config.allowUnfree = true;
nixpkgs.config.packageOverrides = pkgs: {
polybar = pkgs.polybar.override {
pulseSupport = true;
};
};
#hardware = {
# opengl.enable = true;
# nvidia.modesetting.enable = true;
# nvidia.package = config.boot.kernelPackages.nvidiaPackages.latest;
#};
services.xserver = {
enable = true;
autorun = true;
layout = "us";
#videoDrivers = ["nvidia"];
desktopManager = {
xterm.enable = false;
};
displayManager = {
sddm.enable = true;
defaultSession = "none+i3";
#sddm.theme = "${sddm-theme}";
};
windowManager.i3 = {
enable = true;
extraPackages = with pkgs; [
rofi
polybar
picom
alacritty
];
};
};
#Font Configuration
fonts.fonts = with pkgs; [
(nerdfonts.override { fonts = [ "FiraCode" ]; })
];
#Sound Configuration
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
};
# Define a user account. Don't forget to set a password with ‘passwd’.
users.users.${user} = {
isNormalUser = true;
extraGroups = [ "wheel" "audio" ]; # Enable ‘sudo’ for the user.
packages = with pkgs; [
polkit_gnome
vim
wget
git
nitrogen
firefox
xfce.thunar
xclip
htop
ncdu
pavucontrol
qjackctl
pass
cifs-utils
remmina
freerdp
gvfs
neofetch
];
};
# List packages installed in system profile. To search, run:
environment.systemPackages = with pkgs; [
];
# List services that you want to enable:
services = {
picom.enable = true;
};
# Security Configuration
security = {
polkit.enable = true;
rtkit.enable = true;
};
system.stateVersion = "23.05"; # Did you read the comment?
}