-
Notifications
You must be signed in to change notification settings - Fork 0
/
oye.nix
70 lines (70 loc) · 1.42 KB
/
oye.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
{ lib, config, pkgs, ... }:
with lib;
{
time.timeZone = "Asia/Shanghai";
i18n.defaultLocale = "zh_CN.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "zh_CN.UTF-8";
LC_IDENTIFICATION = "zh_CN.UTF-8";
LC_MEASUREMENT = "zh_CN.UTF-8";
LC_MONETARY = "zh_CN.UTF-8";
LC_NAME = "zh_CN.UTF-8";
LC_NUMERIC = "zh_CN.UTF-8";
LC_PAPER = "zh_CN.UTF-8";
LC_TELEPHONE = "zh_CN.UTF-8";
LC_TIME = "zh_CN.UTF-8";
};
networking.firewall.enable = false;
services.openssh.enable = true;
nix.settings.substituters = [ "https://mirrors.cernet.edu.cn/nix-channels/store" ];
documentation.enable = true;
documentation.nixos.enable = true;
#security.sudo.extraRules= [
# { users = [ "sdhou" ];
# commands = [
# { command = "ALL";
# options= [ "NOPASSWD" ];
# }
# ];
# }
#];
environment.noXlibs = false;
environment.systemPackages = with pkgs; [
axel
bat
cloc
docker
go
git
htop
jdk
jq
mariadb
minio
mycli
maven
nginx
nodePackages_latest.nodejs
nodePackages.pnpm
pm2
vim
wget
tree
unzip
redis
yarn
rclone
wrk
tig
];
services.redis.servers."".enable = true;
system.stateVersion = "23.11";
virtualisation.docker.enable = true;
virtualisation.docker.enableOnBoot = true;
users.users.sdhou = {
isNormalUser = true;
extraGroups = [
"docker"
];
};
}