104 lines
2.2 KiB
Nix
104 lines
2.2 KiB
Nix
{ config, pkgs, ... }:
|
|
|
|
let user = "dekker1"; in
|
|
|
|
{
|
|
|
|
imports = [
|
|
./home-manager.nix
|
|
../shared
|
|
../shared/cachix
|
|
];
|
|
|
|
# Auto upgrade nix package and the daemon service.
|
|
services.nix-daemon.enable = true;
|
|
|
|
# Setup user, packages, programs
|
|
nix = {
|
|
package = pkgs.nixUnstable;
|
|
settings.trusted-users = [ "@admin" "${user}" ];
|
|
|
|
gc = {
|
|
user = "root";
|
|
automatic = true;
|
|
interval = { Weekday = 0; Hour = 2; Minute = 0; };
|
|
options = "--delete-older-than 30d";
|
|
};
|
|
|
|
# Turn this on to make command line easier
|
|
extraOptions = ''
|
|
experimental-features = nix-command flakes
|
|
'';
|
|
};
|
|
|
|
# Turn off NIX_PATH warnings now that we're using flakes
|
|
system.checks.verifyNixPath = false;
|
|
|
|
# Load configuration that is shared across systems
|
|
environment.systemPackages = with pkgs; [
|
|
emacs-unstable
|
|
] ++ (import ../shared/packages.nix { inherit pkgs; });
|
|
|
|
# Enable fonts dir
|
|
fonts.fontDir.enable = true;
|
|
|
|
launchd.user.agents.emacs.path = [ config.environment.systemPath ];
|
|
launchd.user.agents.emacs.serviceConfig = {
|
|
KeepAlive = true;
|
|
ProgramArguments = [
|
|
"/bin/sh"
|
|
"-c"
|
|
"/bin/wait4path ${pkgs.emacs}/bin/emacs && exec ${pkgs.emacs}/bin/emacs --fg-daemon"
|
|
];
|
|
StandardErrorPath = "/tmp/emacs.err.log";
|
|
StandardOutPath = "/tmp/emacs.out.log";
|
|
};
|
|
|
|
system = {
|
|
stateVersion = 4;
|
|
|
|
defaults = {
|
|
LaunchServices = {
|
|
LSQuarantine = false;
|
|
};
|
|
|
|
NSGlobalDomain = {
|
|
AppleShowAllExtensions = true;
|
|
ApplePressAndHoldEnabled = false;
|
|
|
|
# 120, 90, 60, 30, 12, 6, 2
|
|
KeyRepeat = 2;
|
|
|
|
# 120, 94, 68, 35, 25, 15
|
|
InitialKeyRepeat = 15;
|
|
|
|
"com.apple.mouse.tapBehavior" = 1;
|
|
"com.apple.sound.beep.volume" = 0.0;
|
|
"com.apple.sound.beep.feedback" = 0;
|
|
};
|
|
|
|
dock = {
|
|
autohide = false;
|
|
show-recents = false;
|
|
launchanim = true;
|
|
orientation = "bottom";
|
|
tilesize = 48;
|
|
};
|
|
|
|
finder = {
|
|
_FXShowPosixPathInTitle = false;
|
|
};
|
|
|
|
trackpad = {
|
|
Clicking = true;
|
|
TrackpadThreeFingerDrag = true;
|
|
};
|
|
};
|
|
|
|
keyboard = {
|
|
enableKeyMapping = true;
|
|
remapCapsLockToControl = true;
|
|
};
|
|
};
|
|
}
|