this repo has no description
1{
2 description = "nate's dotfiles — zsh, nvim, tmux, wezterm, oh-my-posh";
3
4 inputs = {
5 nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
6 home-manager = {
7 url = "github:nix-community/home-manager";
8 inputs.nixpkgs.follows = "nixpkgs";
9 };
10 };
11
12 outputs = { nixpkgs, home-manager, ... }:
13 let
14 supportedSystems = [ "aarch64-darwin" "x86_64-linux" "aarch64-linux" ];
15
16 mkHome = system:
17 let
18 pkgs = nixpkgs.legacyPackages.${system};
19 isDarwin = builtins.match ".*-darwin" system != null;
20 in
21 home-manager.lib.homeManagerConfiguration {
22 inherit pkgs;
23 modules = [ ./home.nix ];
24 extraSpecialArgs = { inherit isDarwin; };
25 };
26 in
27 {
28 homeConfigurations = builtins.listToAttrs (map (system: {
29 name = "nate@${system}";
30 value = mkHome system;
31 }) supportedSystems);
32
33 # convenience: `nix run .` applies config for current system
34 # usage: nix run home-manager -- switch --flake .#nate@$(nix eval --raw nixpkgs#system)
35 };
36}