Simple tool for automatic file management
1{ 2 inputs = { 3 nixpkgs.url = "flake:nixpkgs"; 4 systems.url = "github:nix-systems/default"; 5 flake-parts.url = "github:hercules-ci/flake-parts"; 6 fenix = { 7 url = "github:nix-community/fenix"; 8 inputs.nixpkgs.follows = "nixpkgs"; 9 }; 10 devenv.url = "github:cachix/devenv"; 11 }; 12 13 nixConfig = { 14 extra-trusted-public-keys = "devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw="; 15 extra-substituters = "https://devenv.cachix.org"; 16 }; 17 18 outputs = { 19 self, 20 flake-parts, 21 ... 22 } @ inputs: 23 flake-parts.lib.mkFlake {inherit inputs;} { 24 imports = [ 25 inputs.devenv.flakeModule 26 ]; 27 28 systems = import inputs.systems; 29 30 perSystem = { 31 self', 32 pkgs, 33 ... 34 }: { 35 formatter = pkgs.alejandra; 36 37 devenv.shells.default = { 38 languages.rust = { 39 enable = true; 40 channel = "nightly"; 41 }; 42 }; 43 }; 44 }; 45}