2025-02-18 21:28:13 +00:00
|
|
|
{
|
|
|
|
description = "Home Manager configuration";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
devbox.url = "github:jetify-com/devbox/latest";
|
|
|
|
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
|
|
|
|
home-manager = {
|
|
|
|
url = "github:nix-community/home-manager";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs =
|
|
|
|
{
|
|
|
|
nixpkgs,
|
|
|
|
home-manager,
|
|
|
|
flake-utils,
|
|
|
|
...
|
|
|
|
}@inputs:
|
|
|
|
flake-utils.lib.eachDefaultSystem (
|
|
|
|
system:
|
|
|
|
let
|
|
|
|
user = "nikos"; # change your user here
|
|
|
|
dotfilesHome = "/home/${user}/.dotfiles"; # specify your dotfiles path
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
overlays = [
|
|
|
|
(self: super: {
|
|
|
|
devbox = inputs.devbox.packages.${system}.default;
|
2025-02-21 09:50:02 +00:00
|
|
|
lexical = pkgs.lexical.override {
|
|
|
|
elixir = pkgs.elixir_1_17;
|
|
|
|
};
|
2025-02-18 21:28:13 +00:00
|
|
|
})
|
|
|
|
inputs.neovim-nightly-overlay.overlays.default
|
|
|
|
];
|
|
|
|
in
|
|
|
|
{
|
|
|
|
formatter = pkgs.nixfmt-rfc-style;
|
|
|
|
packages.homeConfigurations.${user} = home-manager.lib.homeManagerConfiguration {
|
|
|
|
inherit pkgs;
|
|
|
|
|
|
|
|
# Specify your home configuration modules here, for example,
|
|
|
|
# the path to your home.nix.
|
|
|
|
modules = [
|
|
|
|
{ nixpkgs.overlays = overlays; }
|
|
|
|
./home.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
extraSpecialArgs = {
|
|
|
|
extra = { inherit user dotfilesHome; };
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|