-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
158 lines (142 loc) · 4.72 KB
/
flake.nix
File metadata and controls
158 lines (142 loc) · 4.72 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
{
description = "Flake to rule em all.";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
nix-colors.url = "github:misterio77/nix-colors";
nixos-apple-silicon = {
url = "github:tpwrules/nixos-apple-silicon";
inputs.nixpkgs.follows = "nixpkgs";
};
emacs-overlay = {
url = "github:nix-community/emacs-overlay/master";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
};
darwin = {
url = "github:nix-darwin/nix-darwin/master";
inputs.nixpkgs.follows = "nixpkgs";
};
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs";
};
lanzaboote = {
url = "github:nix-community/lanzaboote/v0.4.3";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{
self,
nixpkgs,
nixos-hardware,
nixos-apple-silicon,
home-manager,
darwin,
emacs-overlay,
nix-colors,
disko,
lanzaboote,
}:
let
lib = nixpkgs.lib;
in
{
nixosConfigurations = {
earth = lib.nixosSystem rec {
# desktop
system = "x86_64-linux";
specialArgs = { inherit home-manager emacs-overlay; };
modules = [
lanzaboote.nixosModules.lanzaboote
./hosts/${system}/earth
./modules/nixos
nixos-hardware.nixosModules.common-pc
nixos-hardware.nixosModules.common-pc-ssd
nixos-hardware.nixosModules.common-cpu-amd
nixos-hardware.nixosModules.common-gpu-nvidia-nonprime
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.venikx = lib.mkMerge [
(import ./modules/home-manager/nixos.nix)
(import ./hosts/${system}/earth/venikx.nix)
nix-colors.homeManagerModules.default
];
home-manager.extraSpecialArgs = { inherit nix-colors; };
}
];
};
limber-lt-kdb = lib.nixosSystem rec {
# laptop
system = "x86_64-linux";
specialArgs = { inherit home-manager emacs-overlay; };
modules = [
disko.nixosModules.disko
nixos-hardware.nixosModules.framework-13-7040-amd
./hosts/${system}/limber-lt-kdb
./modules/nixos
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.venikx = lib.mkMerge [
(import ./modules/home-manager/nixos.nix)
(import ./hosts/${system}/limber-lt-kdb/venikx.nix)
nix-colors.homeManagerModules.default
];
home-manager.extraSpecialArgs = { inherit nix-colors; };
}
];
};
air = lib.nixosSystem rec {
# asahi macbook
system = "aarch64-linux";
specialArgs = {
inherit home-manager emacs-overlay nixos-apple-silicon;
};
modules = [
./hosts/${system}/air
./modules/nixos
home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.venikx = lib.mkMerge [
(import ./modules/home-manager/nixos.nix)
(import ./hosts/${system}/air/venikx.nix)
nix-colors.homeManagerModules.default
];
home-manager.extraSpecialArgs = { inherit nix-colors; };
}
];
};
};
darwinConfigurations = {
"MacBook-Y026V" = darwin.lib.darwinSystem rec {
system = "aarch64-darwin";
specialArgs = { inherit home-manager emacs-overlay; };
modules = [
./hosts/${system}/MacBook-Y026V
./modules/darwin
home-manager.darwinModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.kdebaerdemaeker = lib.mkMerge [
(import ./modules/home-manager/darwin.nix)
(import ./hosts/${system}/MacBook-Y026V/venikx.nix)
nix-colors.homeManagerModules.default
];
home-manager.extraSpecialArgs = { inherit nix-colors; };
}
];
};
};
};
}