Skip to content

Instantly share code, notes, and snippets.

View berryp's full-sized avatar
😎

Berry Phillips berryp

😎
  • Seoul, Korea
  • 00:24 (UTC +09:00)
View GitHub Profile
@berryp
berryp / copy-applications.nix
Created December 3, 2022 09:07
Have nix-darwin installed GUI show up in Spotlight
{ config, lib, pkgs, ... }:
{
# Import this module in your nix-darin config to have applications copied
# to /Applications/Nix Apps instead of being symlinked. GUI apps must be
# added to environment packages, not home-manager for this to work.
system.activationScripts.applications.text = lib.mkForce ''
echo "Setting up /Applications/Nix Apps" >&2
appsSrc="${config.system.build.applications}/Applications/"
baseDir="/Applications/Nix Apps"
@berryp
berryp / prepare-nix.sh
Last active December 14, 2022 12:30
NixOs pre-installation steps for new VM
#!/bin/bash
set -e
# https://nixos.org/manual/nixos/stable/index.html#sec-installation
###############################################################
# JUST DON'T USE THIS. IT'S NOT FOR YOU.
###############################################################