dotfiles/flake.nix

40 lines
1.2 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-09-24 12:07:57 +00:00
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-03-02 21:09:33 +00:00
lexical.url = "github:lexical-lsp/lexical";
2023-09-24 12:07:57 +00:00
};
2024-03-02 21:09:33 +00:00
outputs = { nixpkgs, home-manager, flake-utils, lexical, ... }:
2023-10-28 11:25:31 +00:00
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 = [
2024-03-02 21:09:33 +00:00
({ ... }: {
nixpkgs.overlays = [
(self: super: { lexical = lexical.packages.${system}.default; })
];
})
2023-10-28 11:25:31 +00:00
./home.nix
];
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
}