flake.nix (1187B)
1 { 2 description = "My personal NUR repository"; 3 4 inputs = { 5 nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable"; 6 flake-utils.url = "github:numtide/flake-utils"; 7 }; 8 9 outputs = 10 { 11 self, 12 nixpkgs, 13 flake-utils, 14 }: 15 { 16 overlays.default = final: prev: import ./pkgs { pkgs = prev; }; 17 nixosModules = import ./modules; 18 } 19 // flake-utils.lib.eachDefaultSystem ( 20 system: 21 let 22 config = { 23 permittedInsecurePackages = [ 24 "openssl-1.1.1w" 25 "python-2.7.18.7" 26 "qtwebkit-5.212.0-alpha4" 27 ]; 28 }; 29 pkgs = import nixpkgs { inherit system config; }; 30 inherit (pkgs) lib; 31 packages = flake-utils.lib.filterPackages system (import ./default.nix { inherit pkgs; }); 32 in 33 { 34 inherit packages; 35 legacyPackages = import nixpkgs { 36 inherit system config; 37 overlays = [ self.overlays.default ]; 38 crossOverlays = [ self.overlays.default ]; 39 }; 40 formatter = pkgs.nixfmt-rfc-style; 41 checks.build = pkgs.linkFarmFromDrvs "sikmir-nur-packages" (lib.attrValues packages); 42 } 43 ); 44 }