Nix-Config/hosts/artemis/default.nix
2026-08-23 16:18:49 -05:00

70 lines
No EOL
1.9 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
swiftpm
];
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" ];
nix.settings.trusted-users = [ "@admin" "nyxerinys" ];
nix.linux-builder = {
enable = true;
ephemeral = true;
maxJobs = 4;
config = {
virtualisation = {
darwin-builder = {
diskSize = 50 * 1024;
memorySize = 16 * 1024;
};
cores = 6;
};
};
};
# 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";
};
}