-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflake.nix
66 lines (63 loc) · 2.26 KB
/
flake.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
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
inputs.nixos-hardware.url = "github:NixOS/nixos-hardware/master";
inputs.nix-darwin.url = "github:LnL7/nix-darwin";
inputs.nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
outputs = { self, nixpkgs, nixos-hardware, nix-darwin } @ inputs: {
legacyPackages = nixpkgs.legacyPackages;
nixosConfigurations = {
hex = nixpkgs.lib.nixosSystem rec {
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [
({pkgs, ...}: {
nixpkgs.overlays = [
(import ./overlays/local.nix )
];
environment.systemPackages = [
];
})
nixos-hardware.nixosModules.framework-11th-gen-intel
#nixos-hardware.nixosModules.dell-xps-13-9380
./modules/common.nix
./modules/linux.nix
./machines/hex
nixpkgs.nixosModules.notDetected
];
};
hal = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [
({pkgs, ...}: {
nixpkgs.overlays = [
(import ./overlays/local.nix )
];
environment.systemPackages = [
];
})
./modules/common.nix
./modules/linux.nix
./machines/hal
nixpkgs.nixosModules.notDetected
nixos-hardware.nixosModules.common-pc-laptop
nixos-hardware.nixosModules.common-pc-laptop-ssd
nixos-hardware.nixosModules.common-hidpi
];
};
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
];
};
};
darwinConfigurations.glados = nix-darwin.lib.darwinSystem {
modules = [
./modules/common.nix
./machines/glados
];
};
};
}