-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
40 lines (34 loc) · 1.28 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
{
description = "Configure system and user spaces.";
inputs = {
# Try going back to unstable or taking both pinned and unstable.
nixpkgs.url = "github:nixos/nixpkgs/release-23.11";
unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
# Used to partition and format disks on NixOS
disko.url = "github:nix-community/disko";
disko.inputs.nixpkgs.follows = "nixpkgs";
# Configure software in home directory.
home-manager.url = "github:nix-community/home-manager/release-23.11";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
# Configure system level software and settings.
darwin.url = "github:lnl7/nix-darwin/master";
darwin.inputs.nixpkgs.follows = "nixpkgs";
# My nvim flake.
envim.url = "github:erikkrieg/envim/main";
envim.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = inputs@{ nixpkgs, unstable, darwin, disko, home-manager, envim, ... }: {
# Imports configurations for all MacOS hosts.
darwinConfigurations = (
import ./hosts/darwin {
inherit inputs nixpkgs unstable darwin home-manager envim;
}
);
# Imports configurations for all NixOS hosts.
nixosConfigurations = (
import ./hosts/nixos {
inherit inputs nixpkgs unstable disko home-manager envim;
}
);
};
}