-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathflake.nix
More file actions
53 lines (46 loc) · 1.36 KB
/
flake.nix
File metadata and controls
53 lines (46 loc) · 1.36 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
{
description = "My system configuration";
inputs = {
# Where we get most of our software. Giant mono repo with recipes
# called derivations that say how to build software.
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
# Manages configs links things into your home directory
home-manager.url = "github:nix-community/home-manager/master";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
# Controls system level software and settings including fonts
darwin.url = "github:lnl7/nix-darwin";
darwin.inputs.nixpkgs.follows = "nixpkgs";
# Include git submodules (for nvim)
self.submodules = true;
# Neovim flake (local submodule)
nvim = {
url = "path:./nvim";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {
self,
darwin,
nixpkgs,
home-manager,
nvim,
...
} @ inputs: {
# Build darwin flake using:
# $ darwin-rebuild build --flake .#<name>
darwinConfigurations."mbp" = darwin.lib.darwinSystem {
system = "aarch64-darwin";
modules = [
./hosts/mbp/configuration.nix
];
specialArgs = {inherit inputs self;};
};
darwinConfigurations."work" = darwin.lib.darwinSystem {
system = "aarch64-darwin";
modules = [
./hosts/work/configuration.nix
];
specialArgs = {inherit inputs self;};
};
};
}