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

@@ -13,7 +13,12 @@
./system/default/editor.nix ./system/default/editor.nix
./system/default/nix.nix ./system/default/nix.nix
./system/default/packages.nix ./system/default/packages.nix
./system/default/system.nix ];
};
nixosModules.linux = { ... }: {
imports = [
./system/linux/system.nix
]; ];
}; };

View File

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

View File

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