-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
54 lines (44 loc) · 1.4 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
{
description = "AleCandido's Nix configs";
inputs = {
# Package sets
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
# Environment/system management
darwin = {
url = "github:lnl7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
# Flake utilities
flake-utils.url = "github:numtide/flake-utils";
# Tools
systems.url = "github:nix-systems/default";
devenv.url = "github:cachix/devenv";
agenix.url = "github:ryantm/agenix";
# Overlays
nixpkgs-firefox-darwin.url = "github:bandithedoge/nixpkgs-firefox-darwin";
firefox-addons = {
url = "gitlab:rycee/nur-expressions?dir=pkgs/firefox-addons";
inputs.nixpkgs.follows = "nixpkgs";
};
# Secrets
secrets.url = "git+ssh://[email protected]/alecandido/secrets.git?shallow=1";
};
outputs = inputs: let
sys = (import ./systems) inputs;
nixConfigs = (import ./top/nix.nix) inputs;
in {
nixosConfigurations = sys.nixos;
darwinConfigurations = sys.darwin;
homeConfigurations = sys.user;
inherit (nixConfigs) formatter;
devShells = (import ./shells) inputs;
};
nixConfig = {
extra-trusted-public-keys = "devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw=";
extra-substituters = "https://devenv.cachix.org";
};
}