Add nix package installation

This commit is contained in:
aloslider committed 2026-07-04 20:57:58 +03:00
1 parent cfca5a109a
commit 60e546e2b8
4 files changed
+65 -9

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
{
description = "Nix packages";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
in {
packages.${system}.default = pkgs.buildEnv {
name = "user-packages";
paths = with pkgs; [
nixd
nixfmt
];
};
};
}