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 = { }; }; }; }