Add nix package installation
This commit is contained in:
1 parent
cfca5a109a
commit
60e546e2b8
4 files changed
+65
-9
No files matched your search
@@ -0,0 +1 @@
|
||||
experimental-features = nix-command flakes
|
||||
@@ -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
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user