fix: customize macOS, fix alacritty

This commit is contained in:
Ryan Yin
2023-07-14 10:35:06 +08:00
parent ca60e962f0
commit 849ecfd6b7
4 changed files with 86 additions and 24 deletions
+13 -1
View File
@@ -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;