-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
39 lines (33 loc) · 1.11 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
{
description = "Kolyma's Homepage";
# inputs are other flakes you use within your own flake, dependencies
# for your flake, etc.
inputs = {
# Nixpkgs
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
# You can access packages and modules from different nixpkgs revs
# at the same time. Here's an working example:
# nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
# Also see the 'unstable-packages' overlay at 'overlays/home.nix'.
# Flake utils for eachSystem
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{ nixpkgs
, flake-utils
, ...
}: flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
# Nixpkgs packages for the current system
{
# Formatter for your nix files, available through 'nix fmt'
# Other options beside 'alejandra' include 'nixpkgs-fmt'
formatter = pkgs.nixpkgs-fmt;
# Development shells
devShells.default = import ./shell.nix { inherit pkgs; };
# Output packages
packages.default = pkgs.callPackage ./. { };
});
}