1{ 2 inputs = { 3 nixpkgs.url = "https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.xz"; 4 lix = { 5 url = "https://git.lix.systems/lix-project/lix/archive/main.tar.gz"; 6 inputs.nixpkgs.follows = "nixpkgs"; 7 }; 8 }; 9 outputs = 10 { self, ... }@inputs: 11 let 12 inherit (inputs) nixpkgs; 13 inherit (inputs.nixpkgs) lib; 14 specialArgs = { inherit inputs; }; 15 forAllSystems = 16 function: lib.genAttrs lib.systems.flakeExposed (system: function nixpkgs.legacyPackages.${system}); 17 in 18 { 19 nixosConfigurations = { 20 hetzner = nixpkgs.lib.nixosSystem { 21 inherit specialArgs; 22 modules = [ 23 ./common 24 ./hetzner 25 ]; 26 }; 27 }; 28 formatter = forAllSystems (pkgs: pkgs.nixfmt-rfc-style); 29 }; 30}