33 lines
935 B
Nix
33 lines
935 B
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";
|
|
};
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
my-repo = {
|
|
url = "https://gitea.tylerbohrer.dev/tyler/my-default-nix-home";
|
|
};
|
|
};
|
|
|
|
outputs = { self, nixpkgs, home-manager, flake-utils, my-repo }:
|
|
flake-utils.lib.eachSystem [ "x86_64-linux" "aarch64-darwin" "x86_64-windows" ] (system: let
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
config = {
|
|
allowUnfree = true;
|
|
};
|
|
};
|
|
homeConfig = import ./home-manager/home.nix {
|
|
inherit pkgs;
|
|
tmuxPackage = my-repo.packages.${system}.tmux;
|
|
};
|
|
in {
|
|
packages.default = homeConfig;
|
|
checks = {
|
|
home-manager = homeConfig;
|
|
};
|
|
});
|
|
} |