-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
34 lines (30 loc) · 1.01 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
{
description = "Drake Flake";
inputs = {
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
mac-app-util.url = "github:hraban/mac-app-util";
nix-darwin.url = "github:LnL7/nix-darwin/master";
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixos-hardware.url = "github:nixos/nixos-hardware/master";
};
outputs = {home-manager, mac-app-util, nix-darwin, nixpkgs, ...} @ inputs: rec {
# darwin-rebuild switch --flake .#iris
darwinConfigurations = {
macbook = import ./darwin/macbook {
inherit inputs home-manager mac-app-util nix-darwin nixpkgs;
};
};
# sudo nixos-rebuild switch --flake .#desktop
nixosConfigurations = {
desktop = import ./nixOS/desktop inputs;
};
# home-manager switch --flake .#iris
homeConfigurations = {
iris = import ./darwin/iris.nix {inherit inputs home-manager mac-app-util nixpkgs;};
};
};
}