Files
dotfiles/flake.nix
J. Fernando Sánchez 29251579e0 nixpkgs 26.05
2026-07-07 23:11:05 +02:00

57 lines
1.6 KiB
Nix

{
description = "Home Manager configuration of j";
inputs = {
# Specify the source of Home Manager and Nixpkgs.
nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05";
home-manager = {
# url = "github:nix-community/home-manager";
url = "github:nix-community/home-manager/release-26.05";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-index-database.url = "github:nix-community/nix-index-database";
nix-index-database.inputs.nixpkgs.follows = "nixpkgs";
};
outputs =
{ self, nixpkgs, home-manager, ... } @ inputs:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
extraSpecialArgs = {
inherit inputs;
dotfilesSrc = self.outPath; # store copy, for readDir only
dotfiles = "/home/j/git/dotfiles"; # live path, for symlink targets
};
in
{
# TCS config
homeConfigurations."j@lenny" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
# Specify your home configuration modules here, for example,
# the path to your home.nix.
modules = [
./home-manager/common.nix
./home-manager/lenny.nix
];
# Optionally use extraSpecialArgs
# to pass through arguments to home.nix
inherit extraSpecialArgs;
};
# Home
homeConfigurations."j" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
inherit extraSpecialArgs;
# Specify your home configuration modules here, for example,
# the path to your home.nix.
modules = [
./home-manager/common.nix
];
};
};
}