blob: fd5467a6d300aae083c889b7f44766824290f1a4 (
plain) (
blame)
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
|
{pkgs, ...}: {
imports = [
./localization.nix
./users.nix
./vim.nix
];
nix = {
# weekly gc
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 1w";
};
settings = {
# optimize store (run manually with `nix-store --optimise`)
auto-optimise-store = true;
download-buffer-size = 524288000; #500MiB
# enable flakes
experimental-features = ["nix-command" "flakes"];
};
};
# allow unfree packages globally
nixpkgs.config.allowUnfree = true;
nixpkgs.config.permittedInsecurePackages = [
"qtwebengine-5.15.19"
];
# timezone
time.timeZone = "Europe/Athens";
# default packages
environment = {
systemPackages = with pkgs; [
bc
cifs-utils
linuxPackages_latest.cpupower
comma
curl
efibootmgr
ethtool
file
git
gnumake
lesspipe
lsof
moreutils
nettools
nvme-cli
openssl
pciutils
smartmontools
somo
usbutils
];
# add zsh completion for system packages
pathsToLink = ["/share/zsh"];
# add ~/bin to PATH
homeBinInPath = true;
};
# enable zsh
programs.zsh.enable = true;
# add lesspipe support for less
programs.less = {
enable = true;
lessopen = "|${pkgs.lesspipe}/bin/lesspipe.sh %s";
};
services = {
envfs = {
enable = true;
};
fwupd = {
enable = true;
};
openssh = {
enable = true;
settings = {
PasswordAuthentication = false;
};
};
};
}
|