2022-01-18 09:32:55 +01:00
|
|
|
{ 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 {
|
2022-01-18 10:42:25 +01:00
|
|
|
imports = [ "${home-manager}/nix-darwin" ./macos/desktop.nix ];
|
2022-01-18 09:32:55 +01:00
|
|
|
|
|
|
|
# List packages installed in system profile. To search by name, run:
|
|
|
|
# $ nix-env -qaP | grep wget
|
|
|
|
# environment.systemPackages = [ ];
|
|
|
|
environment.systemPackages = [
|
|
|
|
choose-pass
|
|
|
|
pkgs.coreutils-full
|
2022-01-19 11:23:51 +01:00
|
|
|
pkgs.csvkit
|
2022-01-18 09:32:55 +01:00
|
|
|
pkgs.curl
|
|
|
|
pkgs.fzf
|
|
|
|
pkgs.gnupg
|
|
|
|
pkgs.google-cloud-sdk
|
|
|
|
pkgs.htop
|
|
|
|
pkgs.jq
|
|
|
|
pkgs.mosh
|
|
|
|
pkgs.pass
|
|
|
|
pkgs.ripgrep
|
|
|
|
pkgs.terraform
|
|
|
|
pkgs.wireguard
|
|
|
|
pkgs.yubikey-personalization
|
|
|
|
];
|
|
|
|
|
|
|
|
# Use a custom configuration.nix location.
|
|
|
|
# $ darwin-rebuild switch -I darwin-config=$HOME/.config/nixpkgs/darwin/configuration.nix
|
2022-01-18 10:58:57 +01:00
|
|
|
environment.darwinConfig = "/Users/rilla/configs/nix-config/echidna.nix";
|
2022-01-18 09:32:55 +01:00
|
|
|
|
|
|
|
# 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" ];
|
|
|
|
brews = [ "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";
|
|
|
|
};
|
|
|
|
|
2022-01-18 10:35:59 +01:00
|
|
|
home-manager.users.rilla = import ./home/echidna.nix;
|
2022-01-18 09:32:55 +01:00
|
|
|
|
|
|
|
system.stateVersion = 4;
|
|
|
|
}
|