94 lines
2.3 KiB
Nix
94 lines
2.3 KiB
Nix
{ config, pkgs, ... }:
|
|
|
|
let
|
|
home-manager = builtins.fetchTarball {
|
|
url = "https://github.com/nix-community/home-manager/archive/master.tar.gz";
|
|
};
|
|
choose-pass =
|
|
pkgs.callPackage ./macos/choose-pass.nix { inherit config pkgs; };
|
|
in {
|
|
imports = [ "${home-manager}/nix-darwin" ./macos/desktop.nix ];
|
|
|
|
# List packages installed in system profile. To search by name, run:
|
|
# $ nix-env -qaP | grep wget
|
|
# environment.systemPackages = [ ];
|
|
environment.systemPackages = [
|
|
choose-pass
|
|
pkgs.ansible
|
|
pkgs.cheat
|
|
pkgs.colima
|
|
pkgs.coreutils-full
|
|
pkgs.csvkit
|
|
pkgs.curl
|
|
pkgs.docker-client
|
|
pkgs.docker-machine
|
|
pkgs.fzf
|
|
pkgs.gnupg
|
|
pkgs.google-cloud-sdk
|
|
pkgs.htop
|
|
pkgs.jq
|
|
pkgs.mosh
|
|
pkgs.pass
|
|
pkgs.pipenv
|
|
pkgs.ripgrep
|
|
pkgs.terraform
|
|
pkgs.vagrant
|
|
pkgs.wireguard
|
|
pkgs.yubikey-personalization
|
|
];
|
|
|
|
# Use a custom configuration.nix location.
|
|
# $ darwin-rebuild switch -I darwin-config=$HOME/.config/nixpkgs/darwin/configuration.nix
|
|
environment.darwinConfig = "/Users/rilla/configs/nix-config/echidna.nix";
|
|
# environment.variables.DOCKER_HOST = "tcp://localhost:2375";
|
|
|
|
# Auto upgrade nix package and the daemon service.
|
|
services.nix-daemon.enable = true;
|
|
# nix.package = pkgs.nix;
|
|
|
|
# Create /etc/bashrc that loads the nix-darwin environment.
|
|
programs.zsh.enable = true; # default shell on catalina
|
|
# programs.fish.enable = true;
|
|
|
|
# Used for backwards compatibility, please read the changelog before changing.
|
|
# $ darwin-rebuild changelog
|
|
|
|
programs.gnupg.agent = {
|
|
enable = true;
|
|
enableSSHSupport = true;
|
|
};
|
|
|
|
homebrew = {
|
|
enable = true;
|
|
autoUpdate = true;
|
|
cleanup = "zap";
|
|
global = {
|
|
brewfile = true;
|
|
noLock = true;
|
|
};
|
|
casks = [ "kmbmpdc" "librewolf" "virtualbox" ];
|
|
brews = [ "pyenv" "mpd" "choose-gui" "vitetris" ];
|
|
taps =
|
|
[ "homebrew/bundle" "homebrew/cask" "homebrew/core" "homebrew/services" ];
|
|
};
|
|
|
|
fonts = {
|
|
enableFontDir = true;
|
|
fonts = [
|
|
(pkgs.nerdfonts.override { fonts = [ "Hack" "MPlus" ]; })
|
|
pkgs.inter
|
|
pkgs.hack-font
|
|
pkgs.libertinus
|
|
];
|
|
};
|
|
|
|
users.users.rilla = {
|
|
name = "rilla";
|
|
home = "/Users/rilla";
|
|
};
|
|
|
|
home-manager.users.rilla = import ./home/echidna.nix;
|
|
|
|
system.stateVersion = 4;
|
|
}
|