mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
25 lines
684 B
Nix
25 lines
684 B
Nix
{
|
|
description = "Basic flake template for setting up development shells";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
ruby-nix.url = "github:sagittaros/ruby-nix";
|
|
ruby-nix.inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
outputs = inputs@{ self, ruby-nix, nixpkgs, ... }:
|
|
let systems = inputs.flake-utils.lib.defaultSystems;
|
|
in inputs.flake-utils.lib.eachSystem systems (system:
|
|
let
|
|
pkgs = import nixpkgs { inherit system; };
|
|
in
|
|
{
|
|
devShells.default =
|
|
import ./shell.nix { inherit pkgs ruby-nix; };
|
|
|
|
formatter = pkgs.treefmt;
|
|
});
|
|
}
|