Files
NixMachines/machines/universeair/configuration.nix

63 lines
1.6 KiB
Nix

{ config, pkgs, inputs, ... }: let
in
{
imports = [
./app-fix.nix
];
nix.registry.nixpkgs.flake = inputs.nixpkgs;
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;
shellAliases = {
ssh = "kitty +kitten ssh";
sshu = "ssh universe";
};
};
home.stateVersion = "22.05";
};
environment.variables = {
EDITOR = "emacs";
};
nixpkgs.config.allowUnfree = true;
environment.systemPackages = (with pkgs; [
mac-emacs
(aspellWithDicts (p: with p;[
en
en-computers
en-science
]))
pandoc
texlive.combined.scheme-full
wget
kitty
btop
cbqn-replxx
]);
# 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;
}