53 lines
No EOL
1.6 KiB
Nix
53 lines
No EOL
1.6 KiB
Nix
{ pkgs, lib, inputs, ... }:
|
|
|
|
{
|
|
imports = [
|
|
./homebrew.nix
|
|
./macos.nix
|
|
];
|
|
environment.systemPackages = with pkgs; [
|
|
(pkgs.vscodium.overrideAttrs (oldAttrs: {
|
|
nativeBuildInputs = (oldAttrs.nativeBuildInputs or []) ++ [ pkgs.jq ];
|
|
postInstall = (oldAttrs.postInstall or "") + ''
|
|
productJson=$out/Applications/VSCodium.app/Contents/Resources/app/product.json
|
|
tmp=$(mktemp)
|
|
jq '.extensionsGallery = {
|
|
serviceUrl: "https://marketplace.visualstudio.com/_apis/public/gallery",
|
|
cacheUrl: "https://vscode.blob.core.windows.net/gallery/index",
|
|
itemUrl: "https://marketplace.visualstudio.com/items",
|
|
controlUrl: "",
|
|
recommendationsUrl: ""
|
|
}' "$productJson" > "$tmp"
|
|
mv "$tmp" "$productJson"
|
|
'';
|
|
}))
|
|
git
|
|
];
|
|
|
|
nyxs-nix.services = {
|
|
home ={
|
|
enable = true;
|
|
isMacOS = true;
|
|
};
|
|
};
|
|
|
|
security.pam.services.sudo_local.touchIdAuth = true;
|
|
ids.gids.nixbld = 350;
|
|
programs.fish.enable = true;
|
|
environment.etc."nix-darwin".source = "/Users/nyxerinys/nix-config";
|
|
nixpkgs.config.allowUnfree = true;
|
|
nix.settings.extra-platforms = [ "x86_64-darwin" "aarch64-darwin" ];
|
|
|
|
# Necessary for using flakes on this system.
|
|
nix.settings.experimental-features = "nix-command flakes";
|
|
# Used for backwards compatibility, please read the changelog before changing.
|
|
# $ darwin-rebuild changelog
|
|
system.stateVersion = 4;
|
|
|
|
# The platform the configuration will be used on.
|
|
nixpkgs.hostPlatform = "aarch64-darwin";
|
|
users.users.nyxerinys = {
|
|
name = "nyxerinys";
|
|
home = "/Users/nyxerinys";
|
|
};
|
|
} |