diff options
author | Franck Cuny <franck@fcuny.net> | 2022-09-18 10:21:40 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-09-18 10:27:43 -0700 |
commit | a29eda084fc0a3b2718776db14efe9ccdb26588d (patch) | |
tree | b1ac73dd32d916bbcfb6c0036c7069b7b57eb9b1 /flake.nix | |
parent | ref(flake): remove pre-commit for golang (diff) | |
download | world-a29eda084fc0a3b2718776db14efe9ccdb26588d.tar.gz |
ref(flake): drop naersk for now
I'll go and refactor correctly and properly the support for rust packages, this is not working and I'm doing something stupid.
Diffstat (limited to '')
-rw-r--r-- | flake.nix | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/flake.nix b/flake.nix index 4715339..1bb9b3d 100644 --- a/flake.nix +++ b/flake.nix @@ -30,8 +30,6 @@ inputs.nixpkgs.follows = "nixpkgs"; }; - naersk.url = "github:nix-community/naersk"; - pre-commit-hooks = { type = "github"; owner = "cachix"; @@ -48,25 +46,21 @@ outputs = { self, ... }@inputs: let inherit (inputs.futils.lib) eachSystem system; - mySystems = [ - system.x86_64-linux - ]; + mySystems = [ system.x86_64-linux ]; eachMySystem = eachSystem mySystems; lib = import ./nix { inherit inputs; }; in eachMySystem (system: let - naersk = inputs.naersk; pkgs = import inputs.nixpkgs { inherit system; }; home-manager = inputs.home-manager.defaultPackage."${system}"; in - rec - { + rec { packages = pkgs // { inherit home-manager; - tools = import ./tools { inherit pkgs naersk; }; + tools = import ./tools { inherit pkgs; }; ops = import ./ops { inherit pkgs; }; users.fcuny = import ./users/fcuny { inherit pkgs; }; }; @@ -78,23 +72,21 @@ hooks = { trailing-whitespace = { enable = true; - entry = "${pkgs.python3Packages.pre-commit-hooks}/bin/trailing-whitespace-fixer"; + entry = + "${pkgs.python3Packages.pre-commit-hooks}/bin/trailing-whitespace-fixer"; types = [ "text" ]; }; end-of-file-fixer = { enable = true; - entry = "${pkgs.python3Packages.pre-commit-hooks}/bin/end-of-file-fixer"; + entry = + "${pkgs.python3Packages.pre-commit-hooks}/bin/end-of-file-fixer"; types = [ "text" ]; }; - nixpkgs-fmt = { - enable = true; - }; + nixpkgs-fmt = { enable = true; }; - terraform-format = { - enable = true; - }; + terraform-format = { enable = true; }; shellcheck = { enable = true; |