-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathg3-configuration.nix
78 lines (75 loc) · 2.07 KB
/
g3-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
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{
config,
lib,
pkgs,
nixpkgs,
...
}:
{
imports = [
./network
./hardware/g3.nix
./security
./programs
./persist.nix
./system
];
time.timeZone = "Asia/Shanghai";
Ownhostname = "wxt-g3";
Enablesteam = true;
Enablepipewire = true;
EnableWaydroid = true;
EnableVirt = true;
EnableMineGPU = false;
EnableVirtualBox = false;
EnableBluetooth = true;
EnableMineCPU = false;
EnableCuda = true;
EnableKubo = false;
EnableDocker = true;
Laptop = true;
users.users.wxt = {
isNormalUser = true;
extraGroups = [
"wheel"
"docker"
"adbusers"
"libvirtd"
"video"
"networkmanager"
];
hashedPassword = "$y$j9T$Xtqkbq9JFHwbncm/owCr20$KBHWdrrABADdLYWarvlUcTyBUOtLqL7qZcrlJTtjtx.";
};
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
# specialisation = {
# test-kernel = {
# configuration = {
# system.nixos.tags = [ "test-kernel" ];
# boot.kernelPackages = pkgs.linuxPackagesFor (
# pkgs.buildLinux {
# version = "6.12-rc1";
# extraMeta.branch = "6.12";
# kernelPatches = [
# {
# name = "bridge-stp-helper";
# patch = "${nixpkgs}/pkgs/os-specific/linux/kernel/bridge-stp-helper.patch";
# }
# {
# name = "request-key-helper";
# patch = "${nixpkgs}/pkgs/os-specific/linux/kernel/request-key-helper.patch";
# }
# ];
# src = pkgs.fetchzip {
# url = "https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/snapshot/linux-6.12-rc1.tar.gz";
# hash = "sha256-olfaNFVQD9qyF/5I0ynv2xa0zxQag/4jyLvZt5nc/Js=";
# };
# }
# );
# };
# inheritParentConfig = true;
# };
# };
}