Skip to content

Commit

Permalink
Update flake to nixos-24.11
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Dec 10, 2024
1 parent b864ee0 commit db5ed64
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 22 deletions.
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/kachick.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: Creating new issue by kachick
about: Specialized to @kachick
title: '日本語 / English'
labels: blog, tips, 'help wanted', question

---

## TL;DR
Expand Down
6 changes: 3 additions & 3 deletions dprint.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"markdown": {},
"yaml": { "quotes": "preferSingle" },
"plugins": [
"https://plugins.dprint.dev/json-0.19.3.wasm",
"https://plugins.dprint.dev/markdown-0.17.1.wasm",
"https://plugins.dprint.dev/g-plane/pretty_yaml-v0.2.0.wasm"
"https://plugins.dprint.dev/json-0.19.4.wasm",
"https://plugins.dprint.dev/markdown-0.17.8.wasm",
"https://plugins.dprint.dev/g-plane/pretty_yaml-v0.5.0.wasm"
]
}
8 changes: 4 additions & 4 deletions flake.lock

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

15 changes: 1 addition & 14 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,28 +1,17 @@
{
inputs = {
# Candidate channels
# - https://github.com/kachick/anylang-template/issues/17
# - 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-24.05";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
};

outputs =
{ self, nixpkgs }:
let
# Candidates: https://github.com/NixOS/nixpkgs/blob/release-23.11/lib/systems/flake-systems.nix
forAllSystems = nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
];
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 = forAllSystems (system: nixpkgs.legacyPackages.${system}.nixfmt-rfc-style);
devShells = forAllSystems (
system:
Expand All @@ -34,8 +23,6 @@
with pkgs;
mkShell {
buildInputs = [
# https://github.com/NixOS/nix/issues/730#issuecomment-162323824
# https://github.com/kachick/dotfiles/pull/228
bashInteractive
findutils # xargs
nixfmt-rfc-style
Expand Down

0 comments on commit db5ed64

Please sign in to comment.