nix/home-manager/flake.nix

40 lines
931 B
Nix
Raw Normal View History

2024-07-14 16:41:22 +02:00
{
description = "My Home Manager configuration";
inputs = {
2024-07-21 11:45:50 +02:00
nixpkgs.url = "nixpkgs/nixos-24.05";
2024-07-27 11:08:16 +02:00
nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
2024-07-14 16:41:22 +02:00
home-manager = {
2024-07-21 11:45:50 +02:00
url = "github:nix-community/home-manager/release-24.05";
2024-07-14 16:41:22 +02:00
inputs.nixpkgs.follows = "nixpkgs";
};
2024-07-21 21:12:05 +02:00
2024-07-27 11:08:16 +02:00
nixvim-flake = {
url = "path:./nixvim";
inputs.nixpkgs.follows = "nixpkgs-unstable";
2024-07-21 21:12:05 +02:00
};
2024-07-14 16:41:22 +02:00
};
2024-07-27 11:08:16 +02:00
outputs = { nixpkgs, home-manager, nixvim-flake, ... }:
2024-07-14 16:41:22 +02:00
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
2024-07-27 11:08:16 +02:00
inputs.nixvim-flake = nixvim-flake;
2024-07-14 16:41:22 +02:00
in {
homeConfigurations = {
t470 = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
2024-07-21 21:12:05 +02:00
modules = [
./home.nix
2024-07-28 23:30:50 +02:00
./wm/river.nix
2024-07-29 10:08:16 +02:00
./wm/waybar.nix
2024-07-21 21:12:05 +02:00
];
2024-07-27 11:08:16 +02:00
extraSpecialArgs = {
inherit inputs;
};
2024-07-14 16:41:22 +02:00
};
};
};
}