Repository navigation
Expand file tree
/
Copy pathflake.nix
More file actions
53 lines (46 loc) · 1.75 KB
/
Copy pathflake.nix
File metadata and controls
53 lines (46 loc) · 1.75 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
# flake.nix --- the heart of my dotfiles
#
# Welcome to ground zero. Where the whole flake gets set up and all its modules
# are loaded.
{
description = "A grossly incandescent nixos config.";
inputs =
{
# Core dependecies
nixpkgs.url = "nixpkgs/nixos-unstable";
agenix.url = "github:ryantm/agenix";
agenix.inputs.nixpkgs.follows = "nixpkgs";
# Desktop dependencies
niri.url = "github:niri-wm/niri"; # built here (modules/wm/niri), so one nixpkgs
niri.inputs.nixpkgs.follows = "nixpkgs";
noctalia.url = "github:noctalia-dev/noctalia/cachix";
# Extras (imported directly by modules/hosts that need them)
emacs-overlay.url = "github:nix-community/emacs-overlay";
nixos-hardware.url = "github:nixos/nixos-hardware";
llm-agents.url = "github:numtide/llm-agents.nix";
};
nixConfig = {
extra-substituters = [
"https://noctalia.cachix.org" # noctalia
"https://nix-community.cachix.org" # emacs-overlay
"https://cache.numtide.com" # llm-agents
];
extra-trusted-public-keys = [
"noctalia.cachix.org-1:pCOR47nnMEo5thcxNDtzWpOxNFQsBRglJzxWPp3dkU4="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"niks3.numtide.com-1:DTx8wZduET09hRmMtKdQDxNNthLQETkc/yaX7M4qK0g="
];
};
outputs = inputs:
with import ./lib { inherit (inputs.nixpkgs) lib; };
mkFlake inputs {
hosts = mapHosts ./hosts;
modules.default = import ./.;
apps.install = mkApp ./install.sh;
devShells.default = import ./shell.nix;
checks = mapModules ./test import;
overlays = mapModules ./overlays import;
packages = mapModules ./packages import;
templates = import ./templates;
};
}