-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
66 lines (55 loc) · 1.86 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
{
description = "My Nix configurations";
inputs = {
# Use unstable-small branch for quicker updates
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable-small";
nixpkgs-darwin.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
# NixOS modules for running on certain hardware
nixos-hardware.url = "github:NixOS/nixos-hardware";
nixos-generators.url = "github:nix-community/nixos-generators";
# Manage macOS systems with Nix
darwin = {
url = "github:LnL7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs-darwin";
};
# Manage user environment with Nix
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs-darwin";
};
# Easily deploy changes to systems
deploy-rs.url = "github:serokell/deploy-rs";
# Dev-environment stuff
flake-parts.url = "github:hercules-ci/flake-parts";
treefmt-nix.url = "github:numtide/treefmt-nix";
devshell.url = "github:numtide/devshell";
nixvim.url = "github:nix-community/nixvim";
# Utilities for the Argon One Raspi case
argonone-utils = {
url = "github:mgdm/argonone-utils";
flake = false;
};
};
nixConfig = {
substituters = [
"https://i077.cachix.org"
"https://cache.nixos.org"
"https://nix-community.cachix.org/"
];
trusted-public-keys = [
"i077.cachix.org-1:v28tOFUfUjtVXdPol5FfEO/6wC/VKWnHkD32/aMJJBk="
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};
outputs = inputs:
inputs.flake-parts.lib.mkFlake {inherit inputs;} {
systems = ["x86_64-darwin" "aarch64-darwin" "x86_64-linux" "aarch64-linux"];
imports = [
./flake/devshell.nix
./flake/hosts.nix
./flake/rescue.nix
./flake/pkgs.nix
];
};
}