Skip to content

Quintisimo/macfigure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

macfigure

Mac configuration in pkl. Simple alternative to nix-darwin

Installation

Run the install script directly from GitHub:

curl -fsSL https://raw.githubusercontent.com/quintisimo/macfigure/main/install.sh | bash

The script will:

  1. Install Homebrew if it is not already installed.
  2. Download the latest pkl release from GitHub and move it to /usr/local/bin (required to parse config files).
  3. Download the latest macfigure release from GitHub and move it to /usr/local/bin.

Configuration

Example config.pkl:

  • Allowed values for each section can be found in the section pkl file in the pkl folder
amends "https://raw.githubusercontent.com/quintisimo/macfigure/pkl/config.pkl"

brew {
  casks = List("zed")
}
cron {
  new {
    schedule = "0 9 * * 1-5"
    source = "/Users/quintisimo/Github/personal/macfigure/hello.sh"
    target = "/tmp/hello.sh"
  }
}
nsglobaldomain {
  AppleIconAppearanceTheme = "RegularAutomatic"
}
dock {
  apps = List("/Applications/Zed.app", "spacer", "small-spacer")
  `show-recents` = false
}
secret {
  new {
    source = "./secrets.age"
    target = "/tmp/secrets.sh"
  }
}

Execute the config by running:

macfigure sync -c config.pkl

About

Mac configuration in pkl. Simple alternative to nix-darwin

Resources

Stars

7 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors