-
Notifications
You must be signed in to change notification settings - Fork 3
/
flake.nix
158 lines (142 loc) · 4.89 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
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
{
description = "Dotfield";
outputs =
{
nixpkgs,
nixpkgs-trunk,
flake-parts,
haumea,
namaka,
...
}@inputs:
(
let
ops = import ./ops/data.nix { inherit haumea; };
in
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [
"aarch64-linux"
"x86_64-linux"
];
imports = [
inputs.devshell.flakeModule
inputs.pre-commit-hooks.flakeModule
{
_module.args = {
inherit ops;
};
}
./flake-modules/homeConfigurations.nix
./lib
./packages
./nixos
./home
./ops/devshells
./ops/git-hooks.nix
./hive.nix
];
flake.checks = namaka.lib.load {
src = ./tests;
inputs = {
inherit ops;
};
};
perSystem =
{ system, pkgs, ... }:
{
_module.args = {
inherit ops;
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
overlays = [ (import ./overlays/mkDefaultOverlay.nix { inherit nixpkgs-trunk; }) ];
};
};
formatter = pkgs.nixfmt-rfc-style;
};
}
);
inputs = {
##: channels
nixpkgs.follows = "nixos-unstable";
nixos-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
# nixos-unstable.url = "github:montchr/nixpkgs/nixos-unstable";
nixos-stable.url = "github:NixOS/nixpkgs/nixos-24.05";
nixpkgs-trunk.url = "github:NixOS/nixpkgs/master";
##: core modules+libraries
apparat.url = "sourcehut:~montchr/apparat";
attic.url = "github:zhaofengli/attic";
disko.url = "github:nix-community/disko";
disko.inputs.nixpkgs.follows = "nixpkgs";
haumea.url = "github:nix-community/haumea";
devshell.url = "github:numtide/devshell";
flake-parts.url = "github:hercules-ci/flake-parts";
flake-utils.url = "github:numtide/flake-utils";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
lix-module = {
url = "https://git.lix.systems/lix-project/nixos-module/archive/2.91.0.tar.gz";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-apple-silicon.url = "github:tpwrules/nixos-apple-silicon/release-2024-09-03";
asahi-tuvok-firmware.url = "git+ssh://[email protected]/~montchr/asahi-tuvok-firmware";
nixos-hardware.url = "github:NixOS/nixos-hardware";
# FIXME: update
simple-nixos-mailserver.url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-23.05";
simple-nixos-mailserver.inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";
srvos.url = "github:numtide/srvos";
# <https://viperml.github.io/wrapper-manager/>
wrapper-manager = {
url = "github:viperML/wrapper-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
##: ops
colmena.url = "github:zhaofengli/colmena";
sops-nix.url = "github:Mic92/sops-nix";
namaka = {
url = "github:nix-community/namaka";
inputs = {
haumea.follows = "haumea";
nixpkgs.follows = "nixpkgs";
};
};
##: customisation
base16-schemes.url = "github:montchr/nix-base16-schemes";
base16-schemes.inputs.nixpkgs.follows = "nixpkgs";
firefox-addons.url = "github:seadome/firefox-addons";
seadome-wallpapers.url = "sourcehut:~montchr/wallpapers";
##: apps/tools
deadnix.url = "github:astro/deadnix";
emacs-overlay.url = "github:nix-community/emacs-overlay";
emacs-overlay.inputs.nixpkgs.follows = "nixpkgs";
nix-inspect.url = "github:bluskript/nix-inspect";
nil-lsp.url = "github:oxalica/nil";
nix-index-database.url = "github:Mic92/nix-index-database";
nix-index-database.inputs.nixpkgs.follows = "nixpkgs";
pre-commit-hooks.url = "github:cachix/pre-commit-hooks.nix";
pre-commit-hooks.inputs.nixpkgs.follows = "nixpkgs";
pre-commit-hooks.inputs.nixpkgs-stable.follows = "nixos-stable";
##: system
microvm.url = "github:astro/microvm.nix";
microvm.inputs.nixpkgs.follows = "nixpkgs";
musnix.url = "github:musnix/musnix";
nixos-generators = {
url = "github:nix-community/nixos-generators";
inputs.nixpkgs.follows = "nixpkgs";
};
nixpkgs-wayland.url = "github:nix-community/nixpkgs-wayland";
nixpkgs-wayland.inputs.nixpkgs.follows = "nixpkgs";
};
# # NOTE: Retained for provisioning purposes, but normally unnecessary.
# nixConfig = {
# extra-experimental-features = "nix-command flakes";
# extra-substituters = [
# "https://dotfield.cachix.org"
# "https://nix-community.cachix.org"
# ];
# extra-trusted-public-keys = [
# "dotfield.cachix.org-1:b5H/ucY/9PDARWG9uWA87ZKWUBU+hnfF30amwiXiaNk="
# "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
# ];
# };
}