Compare commits

..

2 commits

Author SHA1 Message Date
dbb825abff
chore(deps): lock file maintenance
All checks were successful
/ check-renovaterc (push) Successful in 3s
/ build (push) Successful in 1s
/ test (push) Successful in 11s
/ report-size (push) Successful in 2s
2025-04-29 08:20:30 +02:00
fc669d5534
fix(treefmt): respect the packages edition
All checks were successful
/ check-renovaterc (push) Successful in 3s
/ build (push) Successful in 1s
/ test (push) Successful in 12s
/ report-size (push) Successful in 2s
Otherwise it might upgrade to edition 2024 which is not available in
stable.
2025-04-29 08:11:53 +02:00
2 changed files with 16 additions and 13 deletions

View file

@ -1,4 +1,8 @@
{ inputs, ... }:
{ lib, inputs, ... }:
let
webnsupdate = ../module.nix;
cargoToml = lib.importTOML ../Cargo.toml;
in
{
imports = [
inputs.treefmt-nix.flakeModule
@ -6,14 +10,10 @@
./tests.nix
];
flake.nixosModules =
let
webnsupdate = ../module.nix;
in
{
default = webnsupdate;
inherit webnsupdate;
};
flake.nixosModules = {
default = webnsupdate;
inherit webnsupdate;
};
perSystem =
{ pkgs, ... }:
@ -23,7 +23,10 @@
projectRootFile = "flake.nix";
programs = {
nixfmt.enable = true;
rustfmt.enable = true;
rustfmt = {
enable = true;
inherit (cargoToml.package) edition; # respect the package's edition
};
statix.enable = true;
typos.enable = true;
};

6
flake.lock generated
View file

@ -37,11 +37,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1745526057,
"narHash": "sha256-ITSpPDwvLBZBnPRS2bUcHY3gZSwis/uTe255QgMtTLA=",
"lastModified": 1745794561,
"narHash": "sha256-T36rUZHUART00h3dW4sV5tv4MrXKT7aWjNfHiZz7OHg=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "f771eb401a46846c1aebd20552521b233dd7e18b",
"rev": "5461b7fa65f3ca74cef60be837fd559a8918eaa0",
"type": "github"
},
"original": {