This repository has been archived by the owner on Nov 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfiguration.nix
57 lines (52 loc) · 1.55 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
{ config, pkgs, lib, ... }:
{
imports = [
./hardware-configuration.nix
./src/minecraft-server.nix
./src/users.nix
./src/networking.nix
./src/jupyter.nix
];
home-manager.useUserPackages = true;
std.interface = {
system = {
dirs = {
secrets = {
clash = "/etc/nixos/secrets/clash.yaml";
keyfile = "/etc/nixos/secrets/keyfile.bin";
};
};
bluetooth = {
# Force enable/disable bluetooth
# enable = true;
# Choose default bluetooth service
service = null;
};
};
devices = {
# resume_offset value. Obtained by <literal>filefrag -v /var/swapFile | awk '{ if($1=="0:"){print $4} }'</literal>
# If you want to hibernate, you MUST set it properly.
# swapResumeOffset = 13742080;
};
};
system.stateVersion = "20.09";
x-os = {
enable = true;
enableSwap = false;
enableVirtualisation = false;
enableXow = true;
# Use SJTU Mirror together with original cache because SJTU has better performance inside Mainland China.
# Use Cachix to reduce repeated builds.
# Set the list to `[ ]` to use official cache only.
binaryCaches = [
"https://mirror.sjtu.edu.cn/nix-channels/store"
"https://cache.nixos.org/"
"https://dcompass.cachix.org/"
"https://lexuge.cachix.org/"
"https://dram.cachix.org"
];
# Choose ibus engines to apply
ibus-engines = with pkgs.ibus-engines; [ libpinyin typing-booster ];
# iwdConfig = { General = { UseDefaultInterface = true; }; };
};
}