Skip to content

Instantly share code, notes, and snippets.

@polynomialspace
Last active July 1, 2021 03:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save polynomialspace/ae456b5f44eb0d37ef99f25b6740ea02 to your computer and use it in GitHub Desktop.
Save polynomialspace/ae456b5f44eb0d37ef99f25b6740ea02 to your computer and use it in GitHub Desktop.
nix m1
# WARNING: this file is generated from the nix.* options in
# your NixOS configuration, typically
# /etc/nixos/configuration.nix. Do not edit it!
max-jobs = auto
cores = 0
sandbox = false
substituters = https://cache.nixos.org/
trusted-substituters =
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
require-sigs = true
trusted-users = root
allowed-users = *
{ config, pkgs, ... }:
{
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
# Home Manager needs a bit of information about you and the
# paths it should manage.
home.username = "ash";
home.homeDirectory = "/Users/ash";
# This value determines the Home Manager release that your
# configuration is compatible with. This helps avoid breakage
# when a new Home Manager release introduces backwards
# incompatible changes.
#
# You can update Home Manager without changing this value. See
# the Home Manager release notes for a list of state version
# changes in each release.
home.stateVersion = "21.11";
programs.direnv.enable = true;
programs.zsh = {
enable = true;
initExtra = ''
eval "$(direnv hook zsh)"
'';
};
programs.htop.enable = true;
}
{ config, pkgs, nixpkgs, ... }:
{
# These don't exist : (
# system.defaults.NSGlobalDomain."com.apple.AppleMultitouchTrackpad.Clicking" = true;
# system.defaults.NSGlobalDomain."com.apple.AppleMultitouchTrackpad.Dragging" = true;
system.defaults.NSGlobalDomain."com.apple.mouse.tapBehavior" = 1;
system.defaults.NSGlobalDomain."com.apple.trackpad.enableSecondaryClick" = true;
system.defaults.NSGlobalDomain."com.apple.swipescrolldirection" = false;
system.defaults.NSGlobalDomain.ApplePressAndHoldEnabled = false;
system.defaults.NSGlobalDomain.InitialKeyRepeat = 25;
system.defaults.NSGlobalDomain.KeyRepeat = 2;
system.defaults.NSGlobalDomain.NSAutomaticCapitalizationEnabled = false;
system.defaults.NSGlobalDomain.NSAutomaticDashSubstitutionEnabled = false;
system.defaults.NSGlobalDomain.NSAutomaticPeriodSubstitutionEnabled = false;
system.defaults.NSGlobalDomain.NSAutomaticQuoteSubstitutionEnabled = false;
system.defaults.NSGlobalDomain.NSAutomaticSpellingCorrectionEnabled = false;
networking.hostName = "m1a";
# List packages installed in system profile. To search by name, run: $ nix-env -qaP |
# grep wget
environment.systemPackages =
[
pkgs.wget
pkgs.mtr
pkgs.screen
pkgs.git
pkgs.go
pkgs.ffmpeg
pkgs.youtube-dl
pkgs.gnupg
pkgs.pinentry_mac
];
# Use a custom configuration.nix location. $ darwin-rebuild switch -I
# darwin-config=$HOME/.config/nixpkgs/darwin/configuration.nix environment.darwinConfig =
# "$HOME/.config/nixpkgs/darwin/configuration.nix";
# 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
system.stateVersion = 4;
environment.variables = {
EDITOR = "vim";
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment