feat(nix): add a first nix, nix-darwin, and home-manager setup

This commit is contained in:
Stefan Imhoff
2024-06-27 14:15:12 +02:00
parent 2996d89a87
commit 28b1031597
12 changed files with 474 additions and 0 deletions

33
nix/home/default.nix Normal file
View File

@@ -0,0 +1,33 @@
{ pkgs, config, lib, home-manager, ... }:
let
isDarwin = pkgs.stdenv.isDarwin;
in
{
# https://nix-community.github.io/home-manager/options.html
imports = [
./skhd
./yabai
];
config = {
home.stateVersion = "23.05";
# Let Home Manager install and manage itself.
programs.home-manager.enable = true;
# TODO: First migrate all fonts
# fonts.fontconfig.enable = true;
# The home.packages option allows you to install Nix packages into your
# environment.
home.packages = with pkgs; [
nixpkgs-fmt
ripgrep
];
home.sessionVariables = {
EDITOR = "vim";
};
};
}