home-manager/flake.nix

40 lines
987 B
Nix
Raw Normal View History

2023-10-05 04:21:24 +00:00
{
description = "Home Manager configuration of tacocat";
inputs = {
# Specify the source of Home Manager and Nixpkgs.
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
2023-10-10 01:35:30 +00:00
helix = {
url = "github:helix-editor/helix/master";
inputs.nixpkgs.follows = "nixpkgs";
};
2023-10-05 04:21:24 +00:00
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
2023-10-10 04:11:57 +00:00
outputs = inputs:
2023-10-05 04:21:24 +00:00
let
system = "x86_64-linux";
2023-10-10 04:11:57 +00:00
pkgs = inputs.nixpkgs.legacyPackages.${system};
2023-10-05 04:21:24 +00:00
in {
2023-10-10 04:11:57 +00:00
homeConfigurations."tacocat" = inputs.home-manager.lib.homeManagerConfiguration {
2023-10-05 04:21:24 +00:00
inherit pkgs;
2023-10-10 03:55:56 +00:00
# Specify your home configuration modules here, for example,
# the path to your home.nix.
modules = [
2023-10-09 20:18:11 +00:00
./home.nix
./shell
2023-10-09 22:08:57 +00:00
./programs
2023-10-10 03:55:56 +00:00
./helix
2023-10-09 20:18:11 +00:00
];
2023-10-05 04:21:24 +00:00
2023-10-10 03:55:56 +00:00
# Optionally use extraSpecialArgs
# to pass through arguments to home.nix
2023-10-10 01:35:30 +00:00
extraSpecialArgs = {inherit inputs system;};
2023-10-05 04:21:24 +00:00
};
};
}