dotfiles/flake.nix

48 lines
1.3 KiB
Nix
Raw Normal View History

2023-09-24 12:07:57 +00:00
{
description = "Home Manager configuration";
inputs = {
2023-10-28 12:17:40 +00:00
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
2023-10-28 11:25:31 +00:00
flake-utils.url = "github:numtide/flake-utils";
2023-10-06 20:46:37 +00:00
2023-09-24 12:07:57 +00:00
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
2023-10-06 20:46:37 +00:00
2023-09-24 12:07:57 +00:00
neovim = {
url = "github:neovim/neovim?dir=contrib";
inputs.nixpkgs.follows = "nixpkgs";
};
};
2023-10-28 11:25:31 +00:00
outputs = { nixpkgs, home-manager, flake-utils, neovim, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
user = "nikos"; # change your user here
dotfilesHome = "/home/${user}/.dotfiles"; # specify your dotfiles path
pkgs = nixpkgs.legacyPackages.${system};
in
{
packages.homeConfigurations.${user} = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
2023-09-24 12:07:57 +00:00
2023-10-28 11:25:31 +00:00
# Specify your home configuration modules here, for example,
# the path to your home.nix.
modules = [
./home.nix
2023-09-24 12:07:57 +00:00
2023-10-28 11:25:31 +00:00
{
nixpkgs.overlays = [
(final: prev: {
neovim = neovim.packages.${system}.neovim;
})
];
}
];
2023-09-26 15:12:40 +00:00
2023-10-28 11:25:31 +00:00
extraSpecialArgs = { extra = { inherit user dotfilesHome; }; };
};
});
2023-09-24 12:07:57 +00:00
}