/ flake.nix
flake.nix
1 { 2 description = "Seungwon Lee's CV in Typst"; 3 4 outputs = 5 inputs@{ flake-parts, ... }: 6 flake-parts.lib.mkFlake { inherit inputs; } { 7 systems = [ 8 "aarch64-darwin" 9 "aarch64-linux" 10 "x86_64-linux" 11 ]; 12 13 imports = [ 14 ./nix/cv.nix 15 ./nix/formatter.nix 16 ./nix/shell.nix 17 ]; 18 19 perSystem = 20 { system, ... }: 21 { 22 _module.args.pkgs = import inputs.nixpkgs { inherit system; }; 23 }; 24 }; 25 26 inputs = { 27 # keep-sorted start 28 flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs"; 29 flake-parts.url = "github:hercules-ci/flake-parts"; 30 gitignore.inputs.nixpkgs.follows = "nixpkgs"; 31 gitignore.url = "github:hercules-ci/gitignore.nix"; 32 nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; 33 treefmt-nix.inputs.nixpkgs.follows = "nixpkgs"; 34 treefmt-nix.url = "github:numtide/treefmt-nix"; 35 # keep-sorted end 36 }; 37 }