-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
41 lines (35 loc) · 1.09 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
{
outputs = { flake-parts, ... }@inputs:
flake-parts.lib.mkFlake { inherit inputs; moduleLocation = ./flake.nix; }
({ ... }:
let
std = import ./std { inherit inputs; };
in
{
systems = [ "x86_64-linux" ];
imports = [
./std/flake-module.nix
./systems
];
flake = {
nixosModules = std.importSubdirs { baseDir = ./modules/nixos; };
homeModules = std.importSubdirs { baseDir = ./modules/home; };
homeConfigurations = std.importSubdirs { baseDir = ./users; };
overlays.default = import ./packages/overlay.nix { inherit inputs; };
};
perSystem = { pkgs, ... }: {
packages = import ./packages { inherit inputs; } pkgs;
};
});
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
home-manager = {
url = "github:nix-community/home-manager/release-24.05";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
};
}