Add minimal flake

This commit is contained in:
Tobias Ostner 2023-09-08 18:23:01 +02:00
parent e9fcc8b1f2
commit 66927e9ebf

34
.config/nix/flake.nix Normal file
View file

@ -0,0 +1,34 @@
{
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;
})
];
};
};
}