Compare commits

..

2 Commits

Author SHA1 Message Date
3986842287
messing with ls -> exa 2022-01-06 20:51:37 -05:00
43ccd55bb3
flake / nix command support 2022-01-06 20:51:22 -05:00
2 changed files with 18 additions and 12 deletions

View File

@ -21,6 +21,9 @@
# Auto upgrade nix package and the daemon service. # Auto upgrade nix package and the daemon service.
services.nix-daemon.enable = true; services.nix-daemon.enable = true;
nix.package = pkgs.nix; nix.package = pkgs.nix;
nix.extraOptions = ''
experimental-features = nix-command flakes
'';
nix.distributedBuilds = true; nix.distributedBuilds = true;
nix.buildMachines = [{ nix.buildMachines = [{
@ -63,14 +66,16 @@
}; };
}; };
system.activationScripts.applications.text = pkgs.lib.mkForce ('' system.activationScripts.applications.text = pkgs.lib.mkForce (
''
rm -rf /Applications/Nix rm -rf /Applications/Nix
mkdir -p /Applications/Nix mkdir -p /Applications/Nix
for app in $(find ${config.system.build.applications}/Applications -maxdepth 1 -type l); do for app in $(find ${config.system.build.applications}/Applications -maxdepth 1 -type l); do
src="$(/usr/bin/stat -f%Y "$app")" src="$(/usr/bin/stat -f%Y "$app")"
cp -r "$src" /Applications/Nix cp -r "$src" /Applications/Nix
done done
''); ''
);
# Used for backwards compatibility, please read the changelog before changing. # Used for backwards compatibility, please read the changelog before changing.
# $ darwin-rebuild changelog # $ darwin-rebuild changelog

View File

@ -16,6 +16,7 @@
home.packages = with pkgs; [ home.packages = with pkgs; [
direnv direnv
exa
fd fd
git git
gitAndTools.gh gitAndTools.gh
@ -70,10 +71,10 @@
EDITOR = "vim"; EDITOR = "vim";
GOPATH = "$HOME/.go"; GOPATH = "$HOME/.go";
}; };
shellAliases = {
ls = "exa --git";
ll = "exa -lh --git";
}; };
dircolors = {
enable = true;
enableZshIntegration = true;
}; };
starship = { starship = {
enable = true; enable = true;