1{ 2 inputs = { 3 nixpkgs.url = "https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.xz"; 4 }; 5 outputs = 6 { self, ... }@inputs: 7 let 8 inherit (inputs) nixpkgs; 9 inherit (inputs.nixpkgs) lib; 10 specialArgs = { inherit inputs; }; 11 forAllSystems = 12 function: 13 lib.genAttrs lib.systems.flakeExposed ( 14 system: 15 function ( 16 import nixpkgs { 17 inherit system; 18 config.allowUnfree = true; 19 } 20 ) 21 ); 22 in 23 { 24 nixosConfigurations = { 25 hetzner = nixpkgs.lib.nixosSystem { 26 inherit specialArgs; 27 modules = [ 28 ./common 29 ./hetzner 30 ]; 31 }; 32 }; 33 packages = forAllSystems (pkgs: { 34 # Too lazy to do callPackage... 35 mac-home = (import ./home/mac) pkgs; 36 }); 37 formatter = forAllSystems (pkgs: pkgs.nixfmt-rfc-style); 38 }; 39}