74 lines
1.9 KiB
Nix
74 lines
1.9 KiB
Nix
{ config, pkgs, ... }: let
|
|
in
|
|
{
|
|
home-manager.useGlobalPkgs = true;
|
|
home-manager.useUserPackages = true;
|
|
users.users.universelaptop = {
|
|
name = "universelaptop";
|
|
home = "/Users/universelaptop";
|
|
};
|
|
home-manager.users.universelaptop = { pkgs, ... }: {
|
|
programs.direnv.enable = true;
|
|
programs.direnv.nix-direnv.enable = true;
|
|
programs.bash.enable = true;
|
|
programs.zsh = {
|
|
enable = true;
|
|
initExtra = ''
|
|
PATH=$HOME/flutter/bin:$PATH
|
|
DYLD_LIBRARY_PATH=MR/v99/runtime/maci64:MR/v99/sys/os/maci64:MR/v99/bin/maci64:$DYLD_LIBRARY_PATH
|
|
flakify() {
|
|
eval "$(direnv hook bash)"
|
|
if [ ! -e flake.nix ]; then
|
|
nix flake new -t github:nix-community/nix-direnv .
|
|
fi
|
|
$EDITOR flake.nix
|
|
}
|
|
'';
|
|
shellAliases = {
|
|
ssh = "kitty +kitten ssh";
|
|
sshu = "ssh universe@syzygial.cc -p 7000";
|
|
tailscale =
|
|
"/Applications/Tailscale.app/Contents/MacOS/Tailscale";
|
|
};
|
|
};
|
|
home.stateVersion = "22.05";
|
|
};
|
|
environment.variables = {
|
|
EDITOR = "emacs";
|
|
};
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
environment.systemPackages = (with pkgs; [
|
|
emacs-macport
|
|
(aspellWithDicts (p: with p;[
|
|
en
|
|
en-computers
|
|
en-science
|
|
]))
|
|
pandoc
|
|
texlive.combined.scheme-full
|
|
wget
|
|
|
|
kitty
|
|
|
|
btop
|
|
|
|
cbqn-replxx
|
|
|
|
podman
|
|
qemu
|
|
]);
|
|
# Or any other shell you're using. };
|
|
# Auto upgrade nix package and the daemon service.
|
|
services.nix-daemon.enable = true;
|
|
nix.package = pkgs.nixUnstable;
|
|
nix.settings.auto-optimise-store = false;
|
|
# Create /etc/zshrc that loads the nix-darwin environment.
|
|
programs.bash.enable = true; # default shell on catalina
|
|
programs.zsh.enable = true; # default shell on catalina
|
|
|
|
# Used for backwards compatibility, please read the changelog before changing.
|
|
# $ darwin-rebuild changelog
|
|
system.stateVersion = 4;
|
|
}
|