spotlights-macbook-air: Install Visual Studio Code via Nix

This commit is contained in:
Spotlight 2024-08-28 17:51:26 -05:00
parent b7e5febdf2
commit 2976fdd1d7
Signed by: spotlight
GPG key ID: 874AA355B3209BDC
2 changed files with 9 additions and 3 deletions

View file

@ -1,4 +1,4 @@
{ pkgs, system, ... }: {
{ lib, pkgs, system, ... }: {
environment = {
# We'll use Vim globally.
systemPackages = [
@ -52,8 +52,13 @@
system.stateVersion = 4;
nixpkgs = {
# TODO(spotlightishere): Make this configurable beyond a singular device.
hostPlatform = "aarch64-darwin";
hostPlatform = lib.mkDefault "aarch64-darwin";
# Regretfully, we use some non-free packages.
config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
# Visual Studio Code
"vscode"
];
};
# Our singular user!