Skip to content

Commit

Permalink
fix flake/flake-parts templates
Browse files Browse the repository at this point in the history
  • Loading branch information
domenkozar committed Mar 16, 2024
1 parent d8a8c12 commit 794116e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions examples/simple-remote/.test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
env | grep GREET
env | grep GREET2
3 changes: 3 additions & 0 deletions examples/simple/devenv.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
inputs:
nixpkgs:
url: github:NixOS/nixpkgs/nixpkgs-unstable
5 changes: 4 additions & 1 deletion templates/flake-parts/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
description = "Description for the project";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs.url = "github:github:cachix/devenv-nixpkgs/rolling";
devenv.url = "github:cachix/devenv";
nix2container.url = "github:nlewo/nix2container";
nix2container.inputs.nixpkgs.follows = "nixpkgs";
Expand All @@ -26,6 +26,9 @@
# module parameters provide easy access to attributes of the same
# system.

# needed for devenv up
packages.devenv-up = self'.devShells.default.config.procfileScript;

# Equivalent to inputs'.nixpkgs.legacyPackages.hello;
packages.default = pkgs.hello;

Expand Down
2 changes: 1 addition & 1 deletion templates/simple/flake.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";
nixpkgs.url = "github:github:cachix/devenv-nixpkgs/rolling";
systems.url = "github:nix-systems/default";
devenv.url = "github:cachix/devenv";
};
Expand Down

0 comments on commit 794116e

Please sign in to comment.