heraclitus: initial config

This commit is contained in:
2022-06-02 17:21:54 -04:00
parent 70aedf03f6
commit bc53e58cfa
4 changed files with 148 additions and 22 deletions

View File

@ -0,0 +1,56 @@
{ config, lib, pkgs, dotfiles, ... }:
{
imports = [
./homebrew.nix
../../modules/builder
];
# List packages installed in system profile. To search by name, run:
# $ nix-env -qaP | grep wget
# environment.systemPackages = with pkgs; [ emacs-nox vim ghc go gopls niv rustup stack ];
environment.systemPackages = with pkgs; [ deno elixir emacs go niv nodejs rustup ];
# Auto upgrade nix package and the daemon service.
services.nix-daemon.enable = true;
users.nix.configureBuildUsers = true;
users.users.walkah = {
home = "/Users/walkah";
shell = pkgs.zsh;
};
home-manager.users.walkah = import "${dotfiles}/home.nix";
nix = {
package = pkgs.nix;
trustedUsers = [ "root" "@admin" ];
extraOptions = ''
extra-platforms = x86_64-darwin aarch64-darwin
experimental-features = nix-command flakes
'';
};
services.lorri.enable = true;
programs = {
zsh = {
enable = true;
promptInit = "";
};
};
system = {
defaults = {
dock = {
autohide = true;
orientation = "left";
};
};
};
# Used for backwards compatibility, please read the changelog before changing.
# $ darwin-rebuild changelog
system.stateVersion = 4;
}

View File

@ -0,0 +1,69 @@
{ config, lib, pkgs, ... }:
{
homebrew = {
enable = true;
brewPrefix = "/opt/homebrew/bin";
autoUpdate = true;
cleanup = "zap";
global = {
brewfile = true;
noLock = true;
};
taps = [
"homebrew/cask"
"homebrew/cask-drivers"
"homebrew/cask-fonts"
"homebrew/cask-versions"
"homebrew/services"
];
brews = [ "coreutils" ];
casks = [
"1password"
"bartender"
"brave-browser"
"bunch"
"discord"
"docker"
"element"
"fantastical"
"figma"
"firefox"
"firefox-developer-edition"
"font-jetbrains-mono"
"font-jetbrains-mono-nerd-font"
"google-chrome"
"gpg-suite"
"hazel"
"ipfs"
"iterm2"
"keybase"
"logi-options-plus"
"logseq"
"raycast"
"slack"
"sonos"
"spotify"
"stats"
"syncthing"
"synology-drive"
"todoist"
"visual-studio-code"
"zoom"
];
masApps = {
OnePasswordSafari = 1569813296;
Bumpr = 1166066070;
DayOne = 1055511498;
Drafts = 1435957248;
Reeder = 1529448980;
Tailscale = 1475387142;
UlyssesMac = 1225570693;
Xcode = 497799835;
};
};
}