dotfiles/flake.nix

47 lines
1.2 KiB
Nix
Raw Normal View History

2023-09-24 12:07:57 +00:00
{
description = "Home Manager configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
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";
};
};
outputs = { nixpkgs, home-manager, neovim, ... }:
let
2023-10-06 20:46:37 +00:00
system = "x86_64-linux"; # change your system type here
user = "nikos"; # change your user here
2023-09-26 15:12:40 +00:00
dotfilesHome = "/home/nikos/.dotfiles"; # specify your dotfiles path
2023-09-24 12:07:57 +00:00
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;
})
];
}
];
2023-09-26 15:12:40 +00:00
extraSpecialArgs = { extra = { inherit user dotfilesHome; }; };
2023-09-24 12:07:57 +00:00
};
};
}