-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflake.nix
More file actions
86 lines (80 loc) · 2.63 KB
/
flake.nix
File metadata and controls
86 lines (80 loc) · 2.63 KB
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
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
inputs.nixos-hardware.url = "github:NixOS/nixos-hardware/master";
inputs.nixpkgs-xr.url = "github:nix-community/nixpkgs-xr";
inputs.helix.url = "github:helix-editor/helix";
inputs.nixpkgs-patcher.url = "github:gepbird/nixpkgs-patcher";
# inputs.nixpkgs-patch-add-amd-debug-tools = {
# url = "https://github.com/NixOS/nixpkgs/pull/436966.diff";
# flake = false;
# };
outputs =
{
nixpkgs,
nixos-hardware,
nixpkgs-xr,
helix,
nixpkgs-patcher,
...
}@inputs:
{
legacyPackages = nixpkgs.legacyPackages;
nixosConfigurations = {
hal = nixpkgs-patcher.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = inputs;
modules = [
./modules/common.nix
./modules/linux.nix
./modules/common-packages
./modules/gnome
./modules/gaming
./machines/hal
nixpkgs.nixosModules.notDetected
nixos-hardware.nixosModules.common-pc-laptop
nixos-hardware.nixosModules.common-pc-laptop-ssd
nixos-hardware.nixosModules.common-hidpi
nixos-hardware.nixosModules.common-cpu-amd
nixos-hardware.nixosModules.common-cpu-amd-pstate
nixos-hardware.nixosModules.common-gpu-amd
{
nixpkgs.overlays = [
helix.overlays.helix
(final: prev: {
# Currently all are recent enough
# wivrn = nixpkgs-xr.packages.x86_64-linux.wivrn;
# xrizer = nixpkgs-xr.packages.x86_64-linux.xrizer;
# wlx-overlay-s = nixpkgs-xr.packages.x86_64-linux.wlx-overlay-s;
})
];
}
];
};
killswitch = nixpkgs-patcher.lib.nixosSystem {
specialArgs = inputs;
system = "x86_64-linux";
modules = [
./modules/common.nix
./modules/linux.nix
./modules/common-packages
./modules/gnome
./modules/falcon-sensor
./machines/killswitch
nixos-hardware.nixosModules.lenovo-thinkpad-x1-11th-gen
{
nixpkgs.overlays = [
helix.overlays.helix
];
}
];
};
iso-minimal = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
"${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal-new-kernel-no-zfs.nix"
./machines/iso-minimal
];
};
};
};
}