-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
93 lines (83 loc) · 1.87 KB
/
flake.nix
File metadata and controls
93 lines (83 loc) · 1.87 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
87
88
89
90
91
92
93
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
wrappers = {
url = "github:Lassulus/wrappers";
inputs.nixpkgs.follows = "nixpkgs";
};
pwndbg = {
url = "github:pwndbg/pwndbg";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
flake-utils = {
url = "github:numtide/flake-utils";
};
nixvim.url = "github:nix-community/nixvim";
nixgl.url = "github:nix-community/nixGL";
nix-binary-ninja = {
url = "github:jchv/nix-binary-ninja";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{
self,
flake-utils,
nixpkgs,
nixgl,
wrappers,
pwndbg,
...
}@inputs:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
overlays = [ nixgl.overlay ];
};
in
{
packages = import ./packages {
inherit
pkgs
system
inputs
self
;
};
}
)
// {
nixosConfigurations = {
desktop = nixpkgs.lib.nixosSystem {
specialArgs = {
outputs = self;
inherit inputs;
};
modules = [
./system/core
./system/graphical
./system/nvidia.nix
./system/virt.nix
./hosts/desktop
];
};
laptop = nixpkgs.lib.nixosSystem {
specialArgs = {
outputs = self;
inherit inputs;
};
modules = [
./system/core
./system/graphical
./system/virt.nix
./hosts/laptop
inputs.nixos-hardware.nixosModules.framework-11th-gen-intel
];
};
};
};
}