home-manager/flake.nix

42 lines
1.1 KiB
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-09 22:08:57 +00:00
helix-master.url = "github:helix-editor/helix/master";
2023-10-05 04:21:24 +00:00
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
2023-10-09 22:08:57 +00:00
outputs = inputs @ { nixpkgs, home-manager, helix-master, ... }:
2023-10-05 04:21:24 +00:00
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
2023-10-09 13:18:56 +00:00
# pkgs = import nixpkgs {
# inherit system;
# config = {
# allowUnfree = true;
# };
# };
2023-10-05 04:21:24 +00:00
in {
homeConfigurations."tacocat" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
# Specify your home configuration modules here, for example,
# the path to your home.nix.
2023-10-09 20:18:11 +00:00
modules = [
./home.nix
./shell
2023-10-09 22:08:57 +00:00
./programs
2023-10-09 20:18:11 +00:00
];
2023-10-05 04:21:24 +00:00
# Optionally use extraSpecialArgs
# to pass through arguments to home.nix
2023-10-09 22:08:57 +00:00
extraSpecialArgs = {inherit inputs system helix-master;};
2023-10-05 04:21:24 +00:00
};
};
}