mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-05 20:41:40 +02:00
fix: customize macOS, fix alacritty
This commit is contained in:
+13
-1
@@ -10,7 +10,8 @@
|
||||
#
|
||||
###################################################################################
|
||||
|
||||
# # enable flakes globally
|
||||
|
||||
# enable flakes globally
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
|
||||
nix.settings.trusted-users = ["admin"];
|
||||
@@ -28,6 +29,17 @@
|
||||
|
||||
programs.nix-index.enable = true;
|
||||
|
||||
# boot.loader.grub.configurationLimit = 10;
|
||||
# do garbage collection weekly to keep disk usage low
|
||||
nix.gc = {
|
||||
automatic = lib.mkDefault true;
|
||||
options = lib.mkDefault "--delete-older-than 1w";
|
||||
};
|
||||
|
||||
# Manual optimise storage: nix-store --optimise
|
||||
# https://nixos.org/manual/nix/stable/command-ref/conf-file.html#conf-auto-optimise-store
|
||||
nix.settings.auto-optimise-store = true;
|
||||
|
||||
# Add ability to used TouchID for sudo authentication
|
||||
security.pam.enableSudoTouchIdAuth = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user