add nix settings and dir colors for MacOS
This commit is contained in:
@@ -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
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
# Nix package manager configuration
|
# Nix package manager configuration
|
||||||
nix = {
|
nix = {
|
||||||
settings = {
|
settings = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
# 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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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";
|
||||||
}
|
}
|
||||||
|
|||||||
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