1
0

add nix settings and dir colors for MacOS

This commit is contained in:
2025-09-21 15:44:26 -07:00
parent 91a1aa83f7
commit 84ec7b5318
5 changed files with 23 additions and 0 deletions

View File

@@ -29,6 +29,7 @@
imports = [ imports = [
./system/macos/environment.nix ./system/macos/environment.nix
./system/macos/fonts.nix ./system/macos/fonts.nix
./system/macos/nix.nix
./system/macos/system.nix ./system/macos/system.nix
]; ];
}; };

View File

@@ -2,6 +2,8 @@
{ {
# Nix package manager configuration # Nix package manager configuration
nix = { nix = {
enable = true;
settings = { settings = {
# 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

View File

@@ -33,6 +33,7 @@ let
"rp1" = colors.turquoise; # Turquoise "rp1" = colors.turquoise; # Turquoise
"mab" = colors.lavender; # Lavender "mab" = colors.lavender; # Lavender
"C02CLC7FLVDL" = colors.gold; # Gold "C02CLC7FLVDL" = colors.gold; # Gold
"M04MN219CK" = colors.gold; # Gold
}; };
# Get the current hostname # Get the current hostname

View File

@@ -2,4 +2,11 @@
{ {
# Manage /etc/shells and place add nix version of bash # Manage /etc/shells and place add nix version of bash
environment.shells = [ pkgs.bash ]; environment.shells = [ pkgs.bash ];
# Enable ls colors
environment.variables = {
CLICOLOR = "1";
LSCOLORS = "ExFxBxDxCxegedabagacad";
};
environment.shellAliases.ls = "ls --color";
} }

12
system/macos/nix.nix Normal file
View File

@@ -0,0 +1,12 @@
{ config, lib, ... }:
{
# Enable the Nix package manager
nix = {
enable = true;
settings = {
# Configure trusted users who can perform privileged Nix operations
trusted-users = lib.mkForce [ "@admin" "${config.system.primaryUser}" ];
};
};
}