home-manager/flake.nix

40 lines
1,006 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 01:35:30 +00:00
outputs = inputs @ { nixpkgs, home-manager, ... }:
2023-10-05 04:21:24 +00:00
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in {
homeConfigurations."tacocat" = home-manager.lib.homeManagerConfiguration {
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
};
};
}