Compare commits

..

2 commits

Author SHA1 Message Date
a0294100f8
Use package option for nixfmt pre-commit hook 2024-03-27 10:56:04 +01:00
3c1b019a9f
flake.lock: Update
Flake lock file updates:

• Updated input 'emacs-overlay':
    'github:nix-community/emacs-overlay/81d4eb044fac45daf51281a046d413a40f05d103?narHash=sha256-jPEUYELo7ACEiFU7jKDdQ%2ByC5OkqG2UcHk1/N%2BN7f3E%3D' (2024-03-26)
  → 'github:nix-community/emacs-overlay/9f6f38ce57d29b78cc6db45cf87813ae631641ec?narHash=sha256-Z7JxlKxbhGWLOvypllSMGhDMWd/A2Hv8zRKJY3a9TTY%3D' (2024-03-27)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/44d0940ea560dee511026a53f0e2e2cde489b4d4?narHash=sha256-YN/Ciidm%2BA0fmJPWlHBGvVkcarYWSC%2Bs3NTPk/P%2Bq3c%3D' (2024-03-23)
  → 'github:nixos/nixpkgs/57e6b3a9e4ebec5aa121188301f04a6b8c354c9b?narHash=sha256-5PiWGn10DQjMZee5NXzeA6ccsv60iLu%2BXtw%2BmfvkUAs%3D' (2024-03-25)
• Updated input 'pre-commit-hooks':
    'github:cachix/pre-commit-hooks.nix/db656fc3e34907000df26e8bc5cc3c94fb27f353?narHash=sha256-%2BrTCra8TY4vuSNTtQ0tcex1syCRPoKyb8vyHmoxkga4%3D' (2024-03-25)
  → 'github:cachix/pre-commit-hooks.nix/7d47a32e5cd1ea481fab33c516356ce27c8cef4a?narHash=sha256-Q7YmSCUJmDl71fJv/zD9lrOCJ1/SE/okZ2DsrmRjzhY%3D' (2024-03-27)
• Updated input 'rust-overlay':
    'github:oxalica/rust-overlay/4c11d2f698ff1149f76b69e72852d5d75f492d0c?narHash=sha256-%2B5M/czgYGqs/jKmi8bvYC%2BJUYboUKNTfkRiesXopeXQ%3D' (2024-03-26)
  → 'github:oxalica/rust-overlay/56f48d6e7559b807763ea03191bfaf95549ce610?narHash=sha256-yK1zue1c8EdpZvEyQWrjawG9Ykzl7eB2xJ/V%2B2vU5Jo%3D' (2024-03-27)
2024-03-27 10:48:22 +01:00
2 changed files with 16 additions and 17 deletions

View file

@ -171,11 +171,11 @@
"nixpkgs-stable": "nixpkgs-stable_2"
},
"locked": {
"lastModified": 1711443855,
"narHash": "sha256-jPEUYELo7ACEiFU7jKDdQ+yC5OkqG2UcHk1/N+N7f3E=",
"lastModified": 1711530423,
"narHash": "sha256-Z7JxlKxbhGWLOvypllSMGhDMWd/A2Hv8zRKJY3a9TTY=",
"owner": "nix-community",
"repo": "emacs-overlay",
"rev": "81d4eb044fac45daf51281a046d413a40f05d103",
"rev": "9f6f38ce57d29b78cc6db45cf87813ae631641ec",
"type": "github"
},
"original": {
@ -688,11 +688,11 @@
},
"nixpkgs_2": {
"locked": {
"lastModified": 1711163522,
"narHash": "sha256-YN/Ciidm+A0fmJPWlHBGvVkcarYWSC+s3NTPk/P+q3c=",
"lastModified": 1711333969,
"narHash": "sha256-5PiWGn10DQjMZee5NXzeA6ccsv60iLu+Xtw+mfvkUAs=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "44d0940ea560dee511026a53f0e2e2cde489b4d4",
"rev": "57e6b3a9e4ebec5aa121188301f04a6b8c354c9b",
"type": "github"
},
"original": {
@ -743,11 +743,11 @@
"nixpkgs-stable": "nixpkgs-stable_3"
},
"locked": {
"lastModified": 1711409088,
"narHash": "sha256-+rTCra8TY4vuSNTtQ0tcex1syCRPoKyb8vyHmoxkga4=",
"lastModified": 1711519547,
"narHash": "sha256-Q7YmSCUJmDl71fJv/zD9lrOCJ1/SE/okZ2DsrmRjzhY=",
"owner": "cachix",
"repo": "pre-commit-hooks.nix",
"rev": "db656fc3e34907000df26e8bc5cc3c94fb27f353",
"rev": "7d47a32e5cd1ea481fab33c516356ce27c8cef4a",
"type": "github"
},
"original": {
@ -817,11 +817,11 @@
]
},
"locked": {
"lastModified": 1711419061,
"narHash": "sha256-+5M/czgYGqs/jKmi8bvYC+JUYboUKNTfkRiesXopeXQ=",
"lastModified": 1711505476,
"narHash": "sha256-yK1zue1c8EdpZvEyQWrjawG9Ykzl7eB2xJ/V+2vU5Jo=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "4c11d2f698ff1149f76b69e72852d5d75f492d0c",
"rev": "56f48d6e7559b807763ea03191bfaf95549ce610",
"type": "github"
},
"original": {

View file

@ -211,7 +211,6 @@
inputs',
pkgs,
config,
lib,
...
}:
{
@ -219,7 +218,10 @@
pre-commit = {
settings = {
hooks = {
nixfmt.enable = true;
nixfmt = {
enable = true;
package = pkgs.nixfmt-rfc-style;
};
deadnix.enable = true;
black.enable = true;
shellcheck = {
@ -228,9 +230,6 @@
};
shfmt.enable = true;
};
tools = {
nixfmt = lib.mkForce pkgs.nixfmt-rfc-style;
};
};
};