Personal Nix setup

More Expo updates

Changed files
+14 -9
home
development
modules
+3 -3
flake.lock
···
},
"nixpkgs": {
"locked": {
-
"lastModified": 1736241350,
-
"narHash": "sha256-CHd7yhaDigUuJyDeX0SADbTM9FXfiWaeNyY34FL1wQU=",
"owner": "nixos",
"repo": "nixpkgs",
-
"rev": "8c9fd3e564728e90829ee7dbac6edc972971cd0f",
"type": "github"
},
"original": {
···
},
"nixpkgs": {
"locked": {
+
"lastModified": 1737525964,
+
"narHash": "sha256-3wFonKmNRWKq1himW9N3TllbeGIHFACI5vmLpk6moF8=",
"owner": "nixos",
"repo": "nixpkgs",
+
"rev": "5757bbb8bd7c0630a0cc4bb19c47e588db30b97c",
"type": "github"
},
"original": {
-2
flake.nix
···
inherit (inputs.language-servers.packages.${self.system})
typescript-language-server
vscode-langservers-extracted;
-
# https://github.com/NixOS/nixpkgs/issues/368501
-
folly = super.folly.overrideAttrs { doCheck = false; };
})
];
in {
···
inherit (inputs.language-servers.packages.${self.system})
typescript-language-server
vscode-langservers-extracted;
})
];
in {
+9 -4
home/development/react-native.nix
···
default = cfg.react-native.enable;
type = types.bool;
};
};
config = mkIf cfg.react-native.enable (mkMerge [
···
cocoapods = if helpers.isDarwin then (mkDefault true) else (mkForce false);
};
-
home.packages = with pkgs; mkIf cfg.react-native.maestro [
maestro
];
}
(helpers.mkIfDarwin {
-
home.packages = with pkgs; mkIf cfg.react-native.cocoapods [
-
cocoapods
-
];
})
(mkIf cfg.react-native.android-sdk {
···
default = cfg.react-native.enable;
type = types.bool;
};
+
+
fastlane = mkOption {
+
default = cfg.react-native.enable;
+
type = types.bool;
+
};
};
config = mkIf cfg.react-native.enable (mkMerge [
···
cocoapods = if helpers.isDarwin then (mkDefault true) else (mkForce false);
};
+
home.packages = with pkgs; [ ruby ] ++ optionals cfg.react-native.maestro [
maestro
];
}
(helpers.mkIfDarwin {
+
home.packages = with pkgs; []
+
++ optionals cfg.react-native.cocoapods [ cocoapods ]
+
++ optionals cfg.react-native.fastlane [ fastlane ];
})
(mkIf cfg.react-native.android-sdk {
+2
modules/base/nix-config.nix
···
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
trusted-users = [ "root" "@wheel" ];
};
optimise.automatic = true;
···
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
trusted-users = [ "root" "@wheel" ];
+
# on Apple Silicon, Rosetta 2 allows for this
+
extra-platforms = mkIf (helpers.system == "aarch64-darwin") [ helpers.system "x86_64-darwin" ];
};
optimise.automatic = true;