34 lines
1.2 KiB
Nix
34 lines
1.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.zhs.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
|
|
'';
|
|
systemPackages = [ pkgs.coreutils ];
|
|
services.nix-daemon.enable = true;
|
|
system.defaults.finder.AppleShowAllExtensions = true;
|
|
system.defaults.finder.FXShowPosixPathInTitle = true;
|
|
system.defaults.dock.autohide = true;
|
|
system.defaults.NSGlobalDomain.InitialKeyRepeat = 14;
|
|
system.defaults.NSGlobalDomain.KeyRepeat = 1;
|
|
})
|
|
];
|
|
};
|
|
};
|
|
}
|