Skip to content

Commit

Permalink
Failed attempt to use flakes
Browse files Browse the repository at this point in the history
I ran:

   nix run "https://flakehub.com/f/NixOS/nixpkgs/*.tar.gz#fh" -- init

...answered a few questions, and generated a broken config.

See DeterminateSystems/fh#130
  • Loading branch information
matta committed Jul 28, 2024
1 parent 0848596 commit 7e841a8
Show file tree
Hide file tree
Showing 5 changed files with 85 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .envrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# See https://github.com/nix-community/nix-direnv
#use nix
# use nix
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
/.hugo_build.lock
/public/CNAME
/public/css/
/public/fonts/
/public/*.html
/public/*.xml
/public/js/
/public/posts/
/public/tags/
40 changes: 40 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 36 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This flake was initially generated by fh, the CLI for FlakeHub (version 0.1.10)
{
# A helpful description of your flake
description = "rfc20.org website";

# Flake inputs
inputs = {
flake-schemas.url = "https://flakehub.com/f/DeterminateSystems/flake-schemas/*.tar.gz";

nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/*.tar.gz";
};

# Flake outputs that other flakes can use
outputs = { self, flake-schemas, nixpkgs }:
let
# Helpers for producing system-specific outputs
supportedSystems = [ "x86_64-linux" "aarch64-darwin" "x86_64-darwin" "aarch64-linux" ];
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
pkgs = import nixpkgs { inherit system; };
});
in {
# Schemas tell Nix about the structure of your flake's outputs
schemas = flake-schemas.schemas;

# Development environments
devShells = forEachSupportedSystem ({ pkgs }: {
default = pkgs.mkShell {
# Pinned packages available in the environment
packages = with pkgs; [
go_1_20
nixpkgs-fmt
];
};
});
};
}
8 changes: 0 additions & 8 deletions shell.nix

This file was deleted.

0 comments on commit 7e841a8

Please sign in to comment.