فهرست منبع

refactor: move some files to `.config`

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
Christina Sørensen 1 سال پیش
والد
کامیت
c516152220
4فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 0 0
      .config/cliff.toml
  2. 0 0
      .config/rust-toolchain.toml
  3. 0 0
      .config/treefmt.nix
  4. 3 3
      flake.nix

+ 0 - 0
cliff.toml → .config/cliff.toml


+ 0 - 0
rust-toolchain.toml → .config/rust-toolchain.toml


+ 0 - 0
treefmt.nix → .config/treefmt.nix


+ 3 - 3
flake.nix

@@ -73,7 +73,7 @@
           inherit system overlays;
         };
 
-        toolchain = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
+        toolchain = pkgs.rust-bin.fromRustupToolchainFile .config/rust-toolchain.toml;
 
         naersk' = pkgs.callPackage naersk {
           cargo = toolchain;
@@ -81,7 +81,7 @@
           clippy = toolchain;
         };
 
-        treefmtEval = treefmt-nix.lib.evalModule pkgs ./treefmt.nix;
+        treefmtEval = treefmt-nix.lib.evalModule pkgs .config/treefmt.nix;
 
         darwinBuildInputs = pkgs.lib.optionals pkgs.stdenv.isDarwin [
           pkgs.libiconv
@@ -288,7 +288,7 @@
               ];
               filterFn = n: _v: (!builtins.elem n toFilter);
               treefmtFormatters = pkgs.lib.mapAttrs (_n: v: { inherit (v) enable; }) (
-                pkgs.lib.filterAttrs filterFn (import ./treefmt.nix).programs
+                pkgs.lib.filterAttrs filterFn (import .config/treefmt.nix).programs
               );
             in
             pre-commit-hooks.lib.${system}.run {