Compare commits
2 Commits
9891755ed9
...
3986842287
Author | SHA1 | Date | |
---|---|---|---|
3986842287 | |||
43ccd55bb3 |
@ -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
|
||||||
|
7
home.nix
7
home.nix
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user