feat: Updated default flake to include unstable packages.

This commit is contained in:
Spencer Brower
2024-04-09 19:08:26 -04:00
parent 8575c5a7a4
commit eddc66d840

View File

@@ -1,19 +1,34 @@
{
description = "A very basic flake";
# description = "A very basic flake";
inputs = {
# nixpkgs.url = "github:NixOS/nixpkgs/23.11";
nixpkgs.url = "github:NixOS/nixpkgs/23.11";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
sbrow.url = "github:sbrow/nix";
flake-parts.url = "github:hercules-ci/flake-parts";
# process-compose-flake.url = "github:Platonic-Systems/process-compose-flake";
# sbrow.url = "github:sbrow/nix";
};
outputs = inputs@{ self, flake-parts, nixpkgs, sbrow }:
outputs = inputs@{ self, flake-parts, nixpkgs, nixpkgs-unstable/*, process-compose-flake, sbrow */ }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [ "x86_64-linux" ];
perSystem = { pkgs, system, ... }: {
imports = [
# inputs.process-compose-flake.flakeModule
];
perSystem = { inputs', pkgs, system, ... }: {
_module.args.pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
overlays = [
(final: prev: { unstable = inputs'.nixpkgs-unstable.legacyPackages; })
];
};
formatter = pkgs.nixpkgs-fmt;
devShells.default = pkgs.mkShell
@@ -22,6 +37,8 @@
# Your packages here
];
};
# process-compose.default.settings = { };
};
};
}