add macOS config

pci.express 930d7824 24217b8c

verified
Changed files
+67 -92
home
+1
.gitignore
··· 1 + result/
-87
flake.lock
··· 1 1 { 2 2 "nodes": { 3 - "flake-compat": { 4 - "flake": false, 5 - "locked": { 6 - "lastModified": 1696426674, 7 - "narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=", 8 - "owner": "edolstra", 9 - "repo": "flake-compat", 10 - "rev": "0f9255e01c2351cc7d116c072cb317785dd33b33", 11 - "type": "github" 12 - }, 13 - "original": { 14 - "owner": "edolstra", 15 - "repo": "flake-compat", 16 - "type": "github" 17 - } 18 - }, 19 - "lix": { 20 - "inputs": { 21 - "flake-compat": "flake-compat", 22 - "nix2container": "nix2container", 23 - "nixpkgs": [ 24 - "nixpkgs" 25 - ], 26 - "nixpkgs-regression": "nixpkgs-regression", 27 - "pre-commit-hooks": "pre-commit-hooks" 28 - }, 29 - "locked": { 30 - "lastModified": 1747871314, 31 - "narHash": "sha256-UV82KwR0gBghOp+H98HYgaoJQZybKJ0zPsJXASKkP/s=", 32 - "rev": "5d49e26f710bb79145ed4e962154166a7edd81c1", 33 - "type": "tarball", 34 - "url": "https://git.lix.systems/api/v1/repos/lix-project/lix/archive/5d49e26f710bb79145ed4e962154166a7edd81c1.tar.gz?rev=5d49e26f710bb79145ed4e962154166a7edd81c1" 35 - }, 36 - "original": { 37 - "type": "tarball", 38 - "url": "https://git.lix.systems/lix-project/lix/archive/main.tar.gz" 39 - } 40 - }, 41 - "nix2container": { 42 - "flake": false, 43 - "locked": { 44 - "lastModified": 1724996935, 45 - "narHash": "sha256-njRK9vvZ1JJsP8oV2OgkBrpJhgQezI03S7gzskCcHos=", 46 - "owner": "nlewo", 47 - "repo": "nix2container", 48 - "rev": "fa6bb0a1159f55d071ba99331355955ae30b3401", 49 - "type": "github" 50 - }, 51 - "original": { 52 - "owner": "nlewo", 53 - "repo": "nix2container", 54 - "type": "github" 55 - } 56 - }, 57 3 "nixpkgs": { 58 4 "locked": { 59 5 "lastModified": 315532800, ··· 67 13 "url": "https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.xz" 68 14 } 69 15 }, 70 - "nixpkgs-regression": { 71 - "locked": { 72 - "lastModified": 1643052045, 73 - "narHash": "sha256-uGJ0VXIhWKGXxkeNnq4TvV3CIOkUJ3PAoLZ3HMzNVMw=", 74 - "owner": "NixOS", 75 - "repo": "nixpkgs", 76 - "rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2", 77 - "type": "github" 78 - }, 79 - "original": { 80 - "owner": "NixOS", 81 - "repo": "nixpkgs", 82 - "rev": "215d4d0fd80ca5163643b03a33fde804a29cc1e2", 83 - "type": "github" 84 - } 85 - }, 86 - "pre-commit-hooks": { 87 - "flake": false, 88 - "locked": { 89 - "lastModified": 1733318908, 90 - "narHash": "sha256-SVQVsbafSM1dJ4fpgyBqLZ+Lft+jcQuMtEL3lQWx2Sk=", 91 - "owner": "cachix", 92 - "repo": "git-hooks.nix", 93 - "rev": "6f4e2a2112050951a314d2733a994fbab94864c6", 94 - "type": "github" 95 - }, 96 - "original": { 97 - "owner": "cachix", 98 - "repo": "git-hooks.nix", 99 - "type": "github" 100 - } 101 - }, 102 16 "root": { 103 17 "inputs": { 104 - "lix": "lix", 105 18 "nixpkgs": "nixpkgs" 106 19 } 107 20 }
+14 -5
flake.nix
··· 1 1 { 2 2 inputs = { 3 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 4 }; 9 5 outputs = 10 6 { self, ... }@inputs: ··· 13 9 inherit (inputs.nixpkgs) lib; 14 10 specialArgs = { inherit inputs; }; 15 11 forAllSystems = 16 - function: lib.genAttrs lib.systems.flakeExposed (system: function nixpkgs.legacyPackages.${system}); 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 + ); 17 22 in 18 23 { 19 24 nixosConfigurations = { ··· 25 30 ]; 26 31 }; 27 32 }; 33 + packages = forAllSystems (pkgs: { 34 + # Too lazy to do callPackage... 35 + mac-home = (import ./home/mac) pkgs; 36 + }); 28 37 formatter = forAllSystems (pkgs: pkgs.nixfmt-rfc-style); 29 38 }; 30 39 }
+52
home/mac/default.nix
··· 1 + pkgs: 2 + 3 + pkgs.buildEnv { 4 + name = "mac-home"; 5 + paths = with pkgs; [ 6 + zig 7 + flashrom 8 + tree 9 + bun 10 + neovim 11 + nil 12 + lua-language-server 13 + typst 14 + tinymist 15 + 16 + # fonts 17 + nerd-fonts.fira-code 18 + 19 + # tools 20 + tt 21 + fastfetch 22 + cmatrix 23 + ripgrep 24 + graphviz 25 + (python3.withPackages ( 26 + ppkgs: with ppkgs; [ 27 + numpy 28 + pandas 29 + pwntools 30 + pydot 31 + ipython 32 + torch-bin 33 + torchvision-bin 34 + matplotlib 35 + flask 36 + flask-cors 37 + bcrypt 38 + ] 39 + )) 40 + p7zip 41 + age 42 + verilog 43 + mtr 44 + b3sum 45 + android-tools 46 + exiftool 47 + minisign 48 + idevicerestore 49 + libimobiledevice 50 + qemu 51 + ]; 52 + }