-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflake.nix
More file actions
85 lines (76 loc) · 2.17 KB
/
flake.nix
File metadata and controls
85 lines (76 loc) · 2.17 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
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
{
description = "";
outputs =
inputs@{ flake-parts, ... }:
let
modules = import ./modules/top-level/all-modules.nix { inherit (inputs.nixpkgs) lib; };
in
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [
"aarch64-darwin"
"x86_64-darwin"
"x86_64-linux"
];
imports = modules.flake ++ [
./users/jkachmar
./hosts/chronos
./hosts/moros
./hosts/prometheus
];
flake = {
# Expose the default nixpkgs config that's shared by all package sets.
nixpkgs-config = {
allowUnfree = true;
};
# Expose different overlays for the 'stable' & 'unstable' package sets.
overlays = {
lix = import ./overlays/lix.nix;
stable = import ./overlays/stable.nix;
unstable = import ./overlays/unstable.nix;
};
# implementation details meant for internal consumption.
internal = {
# re-expose non-flake modules so they can be imported from within
# the configuration.
modules = {
inherit (modules) darwin nixos home;
};
};
};
};
inputs = {
# Package sets.
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
unstable.url = "github:nixos/nixpkgs/nixos-unstable-small";
# macOS system management.
darwin = {
url = "github:lnl7/nix-darwin/nix-darwin-25.11";
inputs.nixpkgs.follows = "nixpkgs";
};
# User config management.
home-manager = {
url = "github:nix-community/home-manager/release-25.11";
inputs.nixpkgs.follows = "nixpkgs";
};
# Flake module management.
flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
# Autoformatting via 'nix fmt'.
treefmt = {
inputs.nixpkgs.follows = "nixpkgs";
url = "github:numtide/treefmt-nix";
};
# Partition management.
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs";
};
# Secret management.
sops-nix = {
url = "github:mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
}