1
0

Extract settings for Darwin

This commit is contained in:
2025-06-25 23:35:24 -07:00
parent 1061e07deb
commit 87929055af
4 changed files with 14 additions and 12 deletions

View File

@@ -1,4 +1,4 @@
{ ... }:
{ lib, ... }:
{
# Nix package manager configuration
nix = {
@@ -6,14 +6,14 @@
# Enable experimental features for modern Nix functionality
# - "nix-command": Enables the new unified 'nix' command interface
# - "flakes": Enables Nix flakes for reproducible and composable configurations
experimental-features = "nix-command flakes";
experimental-features = [ "nix-command" "flakes" ];
# Specify which users are allowed to run nix commands
allowed-users = [ "tb" ];
allowed-users = lib.mkDefault [ "tb" ];
# Users who can act as trusted users (can override settings)
# Trusted users can use --option flags and import from derivations
trusted-users = [ "root" "tb" ];
trusted-users = lib.mkDefault [ "root" "tb" ];
# Show more lines of build output on failure
log-lines = 50;
@@ -35,9 +35,6 @@
# Enable automatic store optimization
# This deduplicates files to save disk space
automatic = true;
# Run optimization weekly
dates = [ "weekly" ];
};
};

View File

@@ -46,7 +46,6 @@
# === SYNC AND BACKUP ===
# File synchronization and backup tools
rclone # Cloud storage sync tool
rsync # Fast, versatile file copying tool
# === FILE UTILITIES ===
@@ -88,7 +87,6 @@
# === HARDWARE UTILITIES ===
# Hardware information and diagnostics
lshw # Hardware information tool
pciutils # PCI bus utilities (lspci)
smartmontools # Hard drive health monitoring
@@ -112,9 +110,10 @@
# --- HARDWARE MANAGEMENT ---
hdparm # Hard disk parameter tuning
usbutils # USB device utilities (lsusb)
dmidecode # DMI/SMBIOS information
hdparm # Hard disk parameter tuning
lshw # Hardware information tool
usbutils # USB device utilities (lsusb)
# --- PROCESS AND SYSTEM MONITORING ---
@@ -128,6 +127,7 @@
# --- FILE SYSTEM UTILITIES ---
inotify-tools # File system event monitoring
rclone # Cloud storage sync tool
sshfs # Mount remote filesystems over SSH
] else [