Skip to content

Commit 1e1aafc

Browse files
committed
Commented up flake.nix
1 parent 485ad31 commit 1e1aafc

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

flake.nix

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,33 @@
11
{
2+
# Description of the application
23
description = "A tool for viewing and editing your nix configuration as a tree";
34

5+
# Importing nixpkgs (the package repository) and poetry for building the application
46
inputs = {
57
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
68
poetry2nix.url = "github:nix-community/poetry2nix";
79
};
810

911
outputs = { self, nixpkgs, poetry2nix }:
1012
let
13+
# Setting system to 64 bit linux
1114
system = "x86_64-linux";
15+
16+
# Adding poetry to our nixpkgs, and setting the pkgs variable as this
1217
pkgs = nixpkgs.legacyPackages.${system}.extend poetry2nix.overlays.default;
18+
19+
# Setting the lib variable (for licenses and maintainers)
1320
lib = nixpkgs.lib;
21+
22+
# Extract mkPoetryApplication from mkPoetry2Nix for buikding our application
1423
inherit (poetry2nix.lib.mkPoetry2Nix { inherit pkgs; }) mkPoetryApplication;
1524
in
1625
{
26+
# The section that builds our application
1727
defaultPackage.x86_64-linux = mkPoetryApplication {
1828
type = "app";
29+
30+
# The project is found at the root of the repository
1931
projectDir = ./.;
2032

2133
# To copy over the full options json

0 commit comments

Comments
 (0)