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 8da69d52d5
5 changed files with 17 additions and 0 deletions

View File

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

View File

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

View File

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

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

@@ -0,0 +1,6 @@
{ config, lib, ... }:
{
nix.settings = {
trusted-users = lib.mkForce [ "@admin" "${config.system.primaryUser" ];
};
}