-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.nix
executable file
·78 lines (70 loc) · 1.79 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
{ config, pkgs, ... }:
{
# import shit
imports = [
# set up hardware shit
./hardware
# packages management
./pkgs
# setting up bootloader
./bootloader
# set up networking
./network
# set up services
./services
# set up users
./users
# environment stuff
./environment
# home-manager
./home
# virtual machines shit
./virtualisation
];
# time zone
time.timeZone = "Europe/Moscow";
# set the input method
i18n.inputMethod = {
enabled = "ibus";
};
# add some cool fonts so everything looks nice
fonts.fonts = with pkgs; [
noto-fonts
noto-fonts-cjk
noto-fonts-emoji
liberation_ttf
fira-code
fira-code-symbols
mplus-outline-fonts
dina-font
proggyfonts
font-awesome-ttf
];
# enable sound
sound.enable = true;
nixpkgs.config.pulseaudio = true;
# instead of the sudoers file
security.sudo = {
enable = true;
extraRules = [
{
# needs for the vpn to work (yes ik that its not the best way to implement it so what)
groups = [ "vpnusers" ];
commands = [
{
command = "${pkgs.openvpn}/bin/openvpn";
options = [ "NOPASSWD" ];
}
{
command = "${pkgs.killall}/bin/killall";
options = [ "NOPASSWD" ];
}
];
}
];
};
# enable fish
programs.fish.enable = true;
# just dont fucking touch it
system.stateVersion = "19.03"; # did you read the comment above?
}