dotfiles/flake.nix
Nikos Papadakis 1c98aef8a0
nix
2023-09-25 00:23:23 +03:00

41 lines
1 KiB
Nix

{
description = "Home Manager configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
neovim = {
url = "github:neovim/neovim?dir=contrib";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { nixpkgs, home-manager, neovim, ... }:
let
system = "x86_64-linux"; # change your system type here
user = "nikos"; # change your user here
pkgs = nixpkgs.legacyPackages.${system};
in
{
homeConfigurations.${user} = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
# Specify your home configuration modules here, for example,
# the path to your home.nix.
modules = [
./home.nix
{
nixpkgs.overlays = [
(final: prev: {
neovim = neovim.packages.${system}.neovim;
})
];
}
];
};
};
}