nix darwin starter config

master
Elias Almqvist 4 months ago
parent 0085e5a46f
commit 9dbc0f4b67
No known key found for this signature in database
GPG Key ID: E31A99CE3E75A158
  1. 29
      nix-darwin/flake.nix
  2. 75
      nix-darwin/home.nix

@ -0,0 +1,29 @@
{
description = "Home Manager configuration";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, home-manager }:
let
system = "x86_64-darwin";
in
{
homeConfigurations = {
username = home-manager.lib.homeManagerConfiguration {
pkgs = import nixpkgs { inherit system; };
modules = [
home-manager.homeManagerConfiguration {
home.stateVersion = "23.05";
imports = [
./home.nix
];
}
];
};
};
};
}

@ -0,0 +1,75 @@
{ config, pkgs, ... }:
{
home.username = "elal";
home.homeDirectory = "/Users/elal";
home.stateVersion = "23.05";
programs.home-manager.enable = true;
# Packages to install
home.packages = with pkgs; [
alacritty
neovim
yabai
skhd
];
# Yabai configuration
services.yabai = {
enable = true;
extraConfig = ''
yabai -m config mouse_follows_focus off
yabai -m config focus_follows_mouse autoraise
yabai -m config window_placement second_child
yabai -m config window_topmost on
yabai -m config window_shadow off
yabai -m config window_opacity off
yabai -m config window_border off
'';
};
# skhd configuration
services.skhd = {
enable = true;
extraConfig = ''
# Example skhd configuration
alt - e : echo "Hello world"
'';
};
# Alacritty configuration
programs.alacritty = {
enable = true;
settings = {
font = {
normal = {
family = "Menlo";
size = 12.0;
};
};
window = {
padding = {
x = 2;
y = 2;
};
dynamic_padding = false;
};
dynamic_title = true;
scrollback = 10000;
};
};
# Neovim configuration
programs.neovim = {
enable = true;
viAlias = true;
settings = {
neovim.init.vimrc = ''
" Example Neovim configuration
set number
syntax on
'';
};
};
}
Loading…
Cancel
Save