-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
53 lines (45 loc) · 1.42 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
{
description = "My Nix configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
small.url = "github:nixos/nixpkgs/nixos-unstable-small";
stable.url = "github:nixos/nixpkgs/nixos-24.11";
devenv = {
url = "github:cachix/devenv";
inputs.nixpkgs.follows = "nixpkgs";
};
homeManager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
agenix = {
url = "github:ryantm/agenix";
inputs.nixpkgs.follows = "nixpkgs";
};
nixBitcoin.url = "github:fort-nix/nix-bitcoin";
hardware.url = "github:nixos/nixos-hardware";
nur.url = "github:nix-community/nur";
};
outputs = { self, ... }@inputs:
let
inherit (self) outputs;
forAllSystems = inputs.nixpkgs.lib.genAttrs [
"aarch64-linux"
"x86_64-linux"
"aarch64-darwin"
"x86_64-darwin"
];
in
{
packages = forAllSystems
(system:
let pkgs = import inputs.nixpkgs { inherit system; };
in import ./pkgs { inherit pkgs; });
overlays = import ./overlays { inherit (inputs) nixpkgs small; };
homeConfigurations = import ./home { inherit inputs self; };
nixosConfigurations = import ./hosts { inherit inputs outputs; };
nixosModules = import ./modules;
templates = import ./templates;
devShells = import ./devShells { inherit inputs; };
};
}