nix-darwin: make several changes to home and system configuration specific to darwin platform
This commit is contained in:
+23
-2
@@ -23,12 +23,32 @@
|
||||
};
|
||||
};
|
||||
|
||||
settings.experimental-features = "nix-command flakes";
|
||||
settings = {
|
||||
experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
|
||||
use-xdg-base-directories = true;
|
||||
};
|
||||
};
|
||||
|
||||
# Enables Touch ID for sudo prompts.
|
||||
security.pam.services.sudo_local.touchIdAuth = true;
|
||||
|
||||
programs = {
|
||||
zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
enableAutosuggestions = true;
|
||||
enableSyntaxHighlighting = true;
|
||||
|
||||
interactiveShellInit = ''
|
||||
eval "$(jump shell)"
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
environment = {
|
||||
variables = rec {
|
||||
XDG_CACHE_HOME = "$HOME/.cache";
|
||||
@@ -43,13 +63,14 @@
|
||||
ls = "ls --color=tty";
|
||||
ff = "clear;fastfetch";
|
||||
nb = "nix-build";
|
||||
nix-rebuild = "sudo darwin-rebuild switch";
|
||||
};
|
||||
|
||||
systemPackages = with pkgs; [
|
||||
wget
|
||||
fastfetch
|
||||
btop
|
||||
nerd-fonts.hack
|
||||
jump
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user