-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
93 lines (84 loc) · 2.65 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{
description = "NixOS configuration";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
agenix.url = "github:ryantm/agenix";
chaotic.url = "github:chaotic-cx/nyx/nyxpkgs-unstable";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
home-manager.url = "github:nix-community/home-manager";
homebrew-bundle = {
url = "github:homebrew/homebrew-bundle";
flake = false;
};
homebrew-core = {
url = "github:homebrew/homebrew-core";
flake = false;
};
homebrew-cask = {
url = "github:homebrew/homebrew-cask";
flake = false;
};
hyprland.inputs.nixpkgs.follows = "nixpkgs";
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
hyprland-plugins = {
url = "github:hyprwm/hyprland-plugins";
inputs.hyprland.follows = "hyprland";
};
mac-app-util.url = "github:hraban/mac-app-util";
nix-colors.url = "github:misterio77/nix-colors";
nix-darwin.url = "github:LnL7/nix-darwin";
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
nix-gaming.url = "github:fufexan/nix-gaming";
nix-homebrew.url = "github:zhaofengli/nix-homebrew";
nix-minecraft.url = "github:Infinidoge/nix-minecraft";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
nixos-vscode-server.url = "github:msteen/nixos-vscode-server";
split-monitor-workspaces = {
url = "github:Duckonaut/split-monitor-workspaces";
inputs.hyprland.follows = "hyprland";
};
};
outputs = inputs:
let
nixos-hosts = [
"altaria"
"reshiram"
"tepig"
"uxie"
];
darwin-hosts = [
"kyurem"
];
in
{
nixosConfigurations =
let
mkSystem = name: inputs.nixpkgs.lib.nixosSystem {
modules = [
./hosts/${name}
./lib
./modules
./pkgs
./system
];
specialArgs = { inherit inputs; };
};
# Creates a set of systems with the given names
mkSystems = systems: builtins.foldl' (acc: system: acc // { ${system} = mkSystem system; }) { } systems;
in
mkSystems nixos-hosts;
darwinConfigurations =
let
mkSystem = name: inputs.nix-darwin.lib.darwinSystem {
modules = [
./hosts/${name}
./darwin
];
specialArgs = { inherit inputs; };
};
# Creates a set of systems with the given names
mkSystems = systems: builtins.foldl' (acc: system: acc // { ${system} = mkSystem system; }) { } systems;
in
mkSystems darwin-hosts;
};
}