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

@ -48,6 +48,7 @@
tmux tmux
unar unar
virt-manager virt-manager
vscode
watch watch
wget wget
xz xz

View file

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