dotfiles/flake.nix
Nikos Papadakis 4a2627a2df
nix
2024-09-06 15:30:54 +03:00

33 lines
986 B
Nix

{
description = "Home Manager configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { nixpkgs, home-manager, flake-utils, ... }:
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;
# Specify your home configuration modules here, for example,
# the path to your home.nix.
modules = [
./home.nix
];
extraSpecialArgs = { extra = { inherit user dotfilesHome; }; };
};
});
}