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" ];
};
};