Skip to content

Commit

Permalink
Prefer stable pkgs for bash and basics
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Apr 1, 2024
1 parent 671cce2 commit 097d3b3
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 13 deletions.
25 changes: 21 additions & 4 deletions flake.lock

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

21 changes: 12 additions & 9 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,35 @@
# - https://discourse.nixos.org/t/differences-between-nix-channels/13998
# How to update the revision
# - `nix flake update --commit-lock-file` # https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-flake-update.html
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
edge-nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};

outputs = { self, nixpkgs, flake-utils }:
outputs = { self, nixpkgs, edge-nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system};
let
pkgs = nixpkgs.legacyPackages.${system};
edge-pkgs = edge-nixpkgs.legacyPackages.${system};
in {
# Q. Why nixfmt? Not nixpkgs-fmt and alejandra?
# A. nixfmt will be official
# - https://github.com/NixOS/nixfmt/issues/153
# - https://github.com/NixOS/nixfmt/issues/129
# - https://github.com/NixOS/rfcs/pull/166
formatter = pkgs.nixfmt;
formatter = edge-pkgs.nixfmt;
devShells.default = with pkgs;
mkShell {
buildInputs = [
# https://github.com/NixOS/nix/issues/730#issuecomment-162323824
# https://github.com/kachick/dotfiles/pull/228
bashInteractive
edge-pkgs.nixfmt
edge-pkgs.nil

nixfmt
nil
dprint
typos
go-task
edge-pkgs.dprint
edge-pkgs.typos
edge-pkgs.go-task
];
};
});
Expand Down

0 comments on commit 097d3b3

Please sign in to comment.