home/flake.nix

57 lines
1.6 KiB
Nix
Raw Normal View History

2023-10-12 22:51:18 +02:00
{
description = "Home Manager configuration of xenia";
inputs = {
# Specify the source of Home Manager and Nixpkgs.
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
kak = {
url = "git+https://githug.xyz/xenia/kakoune.git";
inputs.nixpkgs.follows = "nixpkgs";
};
unispect = {
url = "git+https://git@githug.xyz/xenia/unispect";
inputs.nixpkgs.follows = "nixpkgs";
};
ansi-utils = {
url = "git+https://git@githug.xyz/xenia/ansi-utils";
inputs.nixpkgs.follows = "nixpkgs";
};
unambig-path = {
url = "git+https://git@githug.xyz/xenia/unambig-path";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, home-manager, kak, unispect, ansi-utils, unambig-path }:
let
system = "aarch64-darwin";
pkgs = import nixpkgs { system = system; config.allowUnfree = true; };
xdg-runtime-dir = "/tmp/xdg-rt";
home = import ./home.nix {
kak-pkg = kak.packages.${system}.kak;
unispect = unispect.packages.${system}.unispect;
ansi-utils = ansi-utils.packages.${system};
unambig-path = unambig-path.packages.${system}.unambig-path;
inherit pkgs xdg-runtime-dir;
};
in {
homeConfigurations."xenia" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
home
( import ./mac.nix { emacs = home.programs.emacs.package; inherit pkgs xdg-runtime-dir; } )
];
};
};
}