-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathflake.nix
More file actions
executable file
·74 lines (64 loc) · 2.01 KB
/
flake.nix
File metadata and controls
executable file
·74 lines (64 loc) · 2.01 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
{
description = "A somewhat huge NixOS/nix-darwin/home-manager configuration using Nix Flakes.";
outputs =
inputs:
inputs.parts.lib.mkFlake { inherit inputs; } {
systems = [
"aarch64-darwin"
"x86_64-linux"
];
imports = [
inputs.parts.flakeModules.partitions
./modules/parts
./modules/nixos
./hosts
./users
];
partitions = {
drvs = {
extraInputsFlake = ./packages;
module = ./packages/module.nix;
};
dev = {
extraInputsFlake = ./dev;
module = ./dev/module.nix;
};
};
partitionedAttrs = {
overlays = "drvs";
packages = "drvs";
formatter = "dev";
};
};
inputs = {
# Flake inputs
agenix.url = "github:ryantm/agenix";
darwin.url = "github:nix-darwin/nix-darwin";
determinate.url = "https://flakehub.com/f/DeterminateSystems/determinate/3";
ghostty.url = "github:ghostty-org/ghostty";
home.url = "github:nix-community/home-manager/master";
nix.url = "github:NixOS/nix/master";
nix-index-database.url = "github:Mic92/nix-index-database";
nixos-wsl.url = "github:nix-community/nixos-wsl";
parts.url = "github:hercules-ci/flake-parts";
# Non-flake inputs
infuse = {
url = "git+https://codeberg.org/amjoseph/infuse.nix.git";
flake = false;
};
# Nixpkgs branches
master.url = "github:NixOS/nixpkgs/master";
# Default Nixpkgs for packages and modules
nixpkgs.follows = "master";
# Minimize duplicate instances of inputs
agenix.inputs.nixpkgs.follows = "nixpkgs";
agenix.inputs.darwin.follows = "darwin";
darwin.inputs.nixpkgs.follows = "nixpkgs";
ghostty.inputs.nixpkgs.follows = "nixpkgs";
home.inputs.nixpkgs.follows = "nixpkgs";
nix.inputs.nixpkgs.follows = "nixpkgs";
nix.inputs.flake-parts.follows = "parts";
nix-index-database.inputs.nixpkgs.follows = "nixpkgs";
nixos-wsl.inputs.nixpkgs.follows = "nixpkgs";
};
}