-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
76 lines (66 loc) · 1.76 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
67
68
69
70
71
72
73
74
75
76
{
description = "System config";
inputs = {
nixpkgs = {
url = "nixpkgs/nixos-24.11";
};
nix-darwin = {
url = "github:LnL7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager/release-24.11";
inputs.nixpkgs.follows = "nixpkgs";
};
nixvim = {
url = "github:nix-community/nixvim/nixos-24.11";
inputs.nixpkgs.follows = "nixpkgs";
};
# secrets management
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-colours.url = "github:Misterio77/nix-colors";
fenix = {
url = "github:nix-community/fenix";
inputs.nixpkgs.follows = "nixpkgs";
};
ghostty = {
url = "github:ghostty-org/ghostty";
};
mac-app-util.url = "github:hraban/mac-app-util";
};
outputs = {nixpkgs, ...} @ inputs: let
mkSystem = import ./utils/mkSystem.nix {
inputs = inputs;
nixpkgs = nixpkgs;
};
in {
nixosConfigurations = {
nixos = mkSystem.nixos {
system = "x86_64-linux";
sysConfig = ./hosts/desktop/configuration.nix;
homeConfig = ./hosts/desktop/home.nix;
};
};
darwinConfigurations = let
system = "aarch64-darwin";
macConfig = ./hosts/mac/configuration.nix;
macHomeConfig = ./hosts/mac/home.nix;
in {
"Harrys-MacBook-Pro" = mkSystem.darwin {
system = system;
hostNameArg = "Harrys-MacBook-Pro";
sysConfig = macConfig;
homeConfig = macHomeConfig;
};
"Harrys-MacBook-Air" = mkSystem.darwin {
system = system;
hostNameArg = "Harrys-MacBook-Air";
sysConfig = macConfig;
homeConfig = macHomeConfig;
};
};
};
}