-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflake.nix
More file actions
78 lines (61 loc) · 2.01 KB
/
Copy pathflake.nix
File metadata and controls
78 lines (61 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
75
76
77
78
{
description = "NixOS/MacOS personal configs & dotfiles";
inputs = {
flake-parts.url = "github:hercules-ci/flake-parts";
import-tree.url = "github:vic/import-tree";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
# Ahead-of-time nixpkgs: can be updated independently for accessing newer packages
# without full system upgrade when main nixpkgs has build failures
nixpkgs-aot.url = "github:NixOS/nixpkgs/nixos-unstable";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
# https://nix-community.github.io/home-manager/index.xhtml#ch-nix-flakes
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-darwin = {
url = "github:LnL7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";
};
agenix = {
url = "github:ryantm/agenix";
inputs.nixpkgs.follows = "nixpkgs";
};
foundryvtt = {
url = "github:ffloyd/nix-foundryvtt";
inputs.nixpkgs.follows = "nixpkgs";
};
zen-browser = {
url = "github:0xc000022070/zen-browser-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-inspect.url = "github:bluskript/nix-inspect";
nixos-cli.url = "github:nix-community/nixos-cli";
nix-flatpak.url = "github:gmodena/nix-flatpak/?ref=latest";
noctalia = {
url = "github:noctalia-dev/noctalia-shell/?ref=v4.7.6";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs @ {
flake-parts,
import-tree,
...
}:
flake-parts.lib.mkFlake {inherit inputs;} {
debug = false;
systems = ["x86_64-linux" "aarch64-darwin"];
imports = [
(import-tree ./my)
(import-tree ./aspects)
(import-tree ./hosts)
./consts.nix
# Darwin systems use nix-darwin and home-manager separately,
# so we need a properly typed flake output
inputs.home-manager.flakeModules.home-manager
];
perSystem = {pkgs, ...}: {
formatter = pkgs.alejandra;
};
};
}