43 lines
1.2 KiB
Nix
43 lines
1.2 KiB
Nix
{
|
|
description = "My Nix flake for cross-platform development environment";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager/release-23.11";
|
|
};
|
|
tmux-flake = {
|
|
url = "github:jakehamilton/tmux";
|
|
};
|
|
};
|
|
|
|
outputs = { self, nixpkgs, home-manager, tmux-flake }:
|
|
let
|
|
system = "aarch64-darwin";
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
config = {
|
|
allowUnfree = true;
|
|
};
|
|
};
|
|
in {
|
|
# Use tmux from jakehamilton/tmux repository
|
|
homeConfigurations."tylerbohrer" = home-manager.lib.homeManagerConfiguration {
|
|
pkgs = pkgs;
|
|
modules = [
|
|
({ pkgs, ... }: {
|
|
# Use the tmux package from jakehamilton/tmux repository
|
|
programs.tmux.package = tmux-flake.packages.${system}.tmux;
|
|
|
|
# Set the required Home Manager options
|
|
home.username = "tylerbohrer";
|
|
home.homeDirectory = "/Users/tylerbohrer";
|
|
home.stateVersion = "23.11";
|
|
|
|
# Include all other settings from the original home.nix
|
|
imports = [ ./home-manager/home.nix ];
|
|
})
|
|
];
|
|
};
|
|
};
|
|
} |