65 lines
2.2 KiB
Nix
65 lines
2.2 KiB
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
|
home-manager.url = "github:nix-community/home-manager/master";
|
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
|
darwin.url = "github:lnl7/nix-darwin";
|
|
darwin.inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
outputs = inputs: {
|
|
darwinConfigurations.TobAir = inputs.darwin.lib.darwinSystem {
|
|
system = "aarch64-darwin";
|
|
pkgs = import inputs.nixpkgs { system = "aarch64-darwin"; };
|
|
modules = [
|
|
({ pkgs, ... }: {
|
|
programs.zsh.enable = true;
|
|
programs.fish.enable = true;
|
|
environment.shells = [ pkgs.bash pkgs.zsh pkgs.fish ];
|
|
environment.loginShell = pkgs.fish;
|
|
nix.extraOptions = ''
|
|
experimental-features = nix-command flakes
|
|
'';
|
|
services.nix-daemon.enable = true;
|
|
system.defaults.finder.AppleShowAllExtensions = true;
|
|
system.defaults.dock.autohide = true;
|
|
system.defaults.NSGlobalDomain.InitialKeyRepeat = 14;
|
|
system.defaults.NSGlobalDomain.KeyRepeat = 1;
|
|
users.users.tobi.home = "/Users/tobi";
|
|
})
|
|
inputs.home-manager.darwinModules.home-manager
|
|
{
|
|
home-manager = {
|
|
useGlobalPkgs = true;
|
|
useUserPackages = true;
|
|
users.tobi.imports = [
|
|
({ pkgs, ... }: {
|
|
home.stateVersion = "23.11";
|
|
home.packages = [
|
|
pkgs.ripgrep
|
|
pkgs.fd
|
|
pkgs.curl
|
|
pkgs.less
|
|
];
|
|
home.sessionVariables = {
|
|
PAGER = "less";
|
|
CLICOLOR = 1;
|
|
EDITOR = "emacs";
|
|
};
|
|
programs.bat.enable = true;
|
|
programs.git.enable = true;
|
|
programs.fish.enable = true;
|
|
programs.fish.shellAliases = { ls = "ls --color=auto -F"; };
|
|
programs.starship.enable = true;
|
|
programs.alacritty = {
|
|
enable = true;
|
|
settings.font.size = 16;
|
|
};
|
|
})
|
|
];
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|