From eddc66d840a57bc0aa00ac1e25879b0b8550dbf3 Mon Sep 17 00:00:00 2001 From: Spencer Brower Date: Tue, 9 Apr 2024 19:08:26 -0400 Subject: [PATCH] feat: Updated default flake to include unstable packages. --- templates/default/flake.nix | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/templates/default/flake.nix b/templates/default/flake.nix index 87075c8..35c9b06 100644 --- a/templates/default/flake.nix +++ b/templates/default/flake.nix @@ -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 = { }; }; }; }