forked from terlar/nix-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
69 lines (59 loc) · 1.92 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
{
description = "Nix Config of Terje";
nixConfig = {
extra-substituters = "https://terlar.cachix.org";
extra-trusted-public-keys = "terlar.cachix.org-1:M8CXTOaJib7CP/jEfpNJAyrgW4qECnOUI02q7cnmh8U=";
};
inputs = {
flake-parts.url = "flake-parts";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
# Flake parts
pre-commit-hooks = {
url = "github:terlar/pre-commit-hooks.nix/add-treefmt";
inputs.flake-compat.follows = "flake-compat";
inputs.nixpkgs.follows = "nixpkgs";
inputs.nixpkgs-stable.follows = "nixpkgs";
};
treefmt = {
url = "github:numtide/treefmt-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
devshell = {
url = "github:numtide/devshell";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
emacs-config = {
url = "github:terlar/emacs-config";
inputs.devshell.follows = "devshell";
inputs.flake-compat.follows = "flake-compat";
inputs.flake-parts.follows = "flake-parts";
inputs.home-manager.follows = "home-manager";
inputs.nixpkgs.follows = "nixpkgs";
inputs.pre-commit-hooks.follows = "pre-commit-hooks";
};
# Modules
nixos-hardware.url = "nixos-hardware";
# Packages
kmonad.url = "github:kmonad/kmonad?dir=nix";
kmonad.inputs.nixpkgs.follows = "nixpkgs";
nixgl.url = "github:guibou/nixGL";
nixgl.inputs.nixpkgs.follows = "nixpkgs";
devenv.url = "github:cachix/devenv/v0.5";
devenv.inputs.nixpkgs.follows = "nixpkgs";
# Sources
dotfiles.url = "github:terlar/dotfiles";
dotfiles.flake = false;
# Compatibility
flake-compat.url = "github:edolstra/flake-compat";
flake-compat.flake = false;
};
outputs = inputs:
inputs.flake-parts.lib.mkFlake {inherit inputs;} {
systems = ["x86_64-linux"];
imports = [./flake-parts];
};
}