-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.nix
193 lines (149 loc) · 5.23 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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
# 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 fs = disk: { device = disk; options = [ "nosuid" "nodev" "nofail" "x-gvfs-show" ]; };
in
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];
# The URI of the NixOS channel to use for automatic upgrades
system.autoUpgrade.channel = "https://nixos.org/channels/nixos-unstable";
# The NixOS release to be compatible with for stateful data such as databases.
system.stateVersion = "17.03";
# Use the GRUB 2 boot loader.
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
boot.loader.grub.default = 5;
boot.loader.grub.useOSProber = true; # To Properly Load Other Os's
boot.loader.grub.splashImage = "/home/saeed/.config/grub/morpheous.png"; # must be equivalent to your screen resolution.(example: 1920*1080)
# Define on which hard drive you want to install Grub.
boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
# Define a user account. Don't forget to set a password with ‘passwd’.
users.extraUsers.saeed = {
isNormalUser = true;
home = "/home/saeed";
extraGroups = [ "wheel" "networkmanager" ];
uid = 1000;
};
# Select internationalisation properties.
i18n = {
consoleFont = "Lat2-Terminus16";
consoleKeyMap = "us";
defaultLocale = "en_US.UTF-8";
};
# Set your time zone. example: Pacific/Honolulu
time.timeZone = "Asia/Tehran";
# Network Configurations
networking.hostName = ""; # Define your hostname.
networking.networkmanager.enable = true;
# override "unfree license (‘unfree’), refusing to evaluate!"
nixpkgs.config.allowUnfree = true;
# Auto Mount Partitions
fileSystems."/run/media/saeed/C/" = fs "/dev/disk/by-label/C";
fileSystems."/run/media/saeed/D/" = fs "/dev/disk/by-label/D";
fileSystems."/run/media/saeed/9a7479bc-5664-48a2-8b2f-11db5a75a69e/" = fs "/dev/disk/by-uuid/9a7479bc-5664-48a2-8b2f-11db5a75a69e"; # Arch's Home
fileSystems."/run/media/saeed/b5f5f7f2-22d2-4aff-b320-ccd95b493314/" = fs "/dev/disk/by-uuid/b5f5f7f2-22d2-4aff-b320-ccd95b493314"; # Arch's Root
# Enable the X11 windowing system.
services.xserver.enable = true;
services.xserver.layout = "us";
services.xserver.xkbOptions = "eurosign:e";
# Enable the KDE Desktop Environment.
services.xserver.displayManager.sddm.enable = true;
services.xserver.displayManager.sddm.autoNumlock = true;
services.xserver.desktopManager.plasma5.enable = true;
# Enable Nvidia & Intel graphic drivers
services.xserver.videoDrivers = [ "intel" ];
hardware.opengl.driSupport32Bit = true;
# TouchPad
services.xserver.synaptics.enable = true;
services.xserver.synaptics.twoFingerScroll = true;
# Sound
# PulseAudio
hardware.pulseaudio.enable = true;
# Alsa
sound.enable = true;
# BlueTooth
# hardware.bluetooth.enable = true;
# Tor
services.tor.enable = true;
services.tor.extraConfig = builtins.readFile "/home/saeed/.config/tor/torrc";
# Polipo
services.polipo.enable = true;
services.polipo.proxyAddress = "127.0.0.1";
services.polipo.proxyPort = 8123;
# ZSH
programs.zsh.enable = true;
users.users.saeed.shell = pkgs.zsh;
# If You Want To Set it For All Users:
# users.defaultUserShell = pkgs.zsh
# List packages installed in system profile. To search by name, run: $ nix-env -qaP | grep wget
environment.systemPackages = with pkgs; [
# Essential
#tor
#git
ntfs3g
#gparted
#unetbootin
#speedcrunch
#zsh
#zsh-prezto
#ark
#unzip
# Editors
#vim
#vscode
# IDE's
#qtcreator
#clementine
# Libraries & Frameworks
#openjdk
# Drivers & Kernel Modules
#xf86_video_nouveau
#glxinfo
# Download Managers
#aria2
#deluge
#youtube-dl
# BlueTooth
#bluez
#blueman
# Communication
#tdesktop
#hexchat
# Office
#okular
# Utility
#goldendict
#spectacle # Screen Capture
# Graphic Design
#gimp
#shotwell
#inkscape
];
# services.xserver.displayManager.sddm.extraConfig = pkgs.lib.mkForce
# (''
# [Theme]
# Current=abstractdark
# ThemeDir=/home/saeed/.config/sddm/themes
# '');
# services.xserver.displayManager.sddm.theme = pkgs.lib.mkForce (builtins.readFile "/home/saeed/.config/sddm/breeze-slider/Main.qml");
# services.xserver.displayManager.sddm.theme = builtins.readFile "/home/saeed/.config/sddm/breeze-slider/Main.qml";
# List services that you want to enable:
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
# Enable CUPS to print documents.
# services.printing.enable = true;
# Garbage!!!
# boot.loader.grub.efiSupport = true;
# boot.loader.grub.efiInstallAsRemovable = true;
# boot.loader.efi.efiSysMountPoint = "/boot/efi";
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
}