diff --git a/flake-modules/default.nix b/flake-modules/default.nix index 7cf532e..6736a16 100644 --- a/flake-modules/default.nix +++ b/flake-modules/default.nix @@ -1,8 +1,4 @@ -{ lib, inputs, ... }: -let - webnsupdate = ../module.nix; - cargoToml = lib.importTOML ../Cargo.toml; -in +{ inputs, ... }: { imports = [ inputs.treefmt-nix.flakeModule @@ -10,10 +6,14 @@ in ./tests.nix ]; - flake.nixosModules = { - default = webnsupdate; - inherit webnsupdate; - }; + flake.nixosModules = + let + webnsupdate = ../module.nix; + in + { + default = webnsupdate; + inherit webnsupdate; + }; perSystem = { pkgs, ... }: @@ -23,10 +23,7 @@ in projectRootFile = "flake.nix"; programs = { nixfmt.enable = true; - rustfmt = { - enable = true; - inherit (cargoToml.package) edition; # respect the package's edition - }; + rustfmt.enable = true; statix.enable = true; typos.enable = true; }; diff --git a/flake.lock b/flake.lock index 2b6d1fa..a5a9d6c 100644 --- a/flake.lock +++ b/flake.lock @@ -37,11 +37,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1745794561, - "narHash": "sha256-T36rUZHUART00h3dW4sV5tv4MrXKT7aWjNfHiZz7OHg=", + "lastModified": 1745526057, + "narHash": "sha256-ITSpPDwvLBZBnPRS2bUcHY3gZSwis/uTe255QgMtTLA=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "5461b7fa65f3ca74cef60be837fd559a8918eaa0", + "rev": "f771eb401a46846c1aebd20552521b233dd7e18b", "type": "github" }, "original": {