add nix settings and dir colors for MacOS
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
{
|
||||
# Nix package manager configuration
|
||||
nix = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
# Enable experimental features for modern Nix functionality
|
||||
# - "nix-command": Enables the new unified 'nix' command interface
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
6
system/macos/nix.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{ config, lib, ... }:
|
||||
{
|
||||
nix.settings = {
|
||||
trusted-users = lib.mkForce [ "@admin" "${config.system.primaryUser}" ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user