home-config/nix-home-manager/flake.nix

a5218684078c94399d3368078db9b0ff3283dcdf · 1.8 KB · 62 lines raw

1 {
2 description = "Home Manager configuration of ryan";
3
4 inputs = {
5 # Specify the source of Home Manager and Nixpkgs.
6 nixpkgs.url = "github:nixos/nixpkgs/55d15ad12a74eb7d4646254e13638ad0c4128776";
7 home-manager = {
8 url = "github:nix-community/home-manager/1cd17a2f76f7711b06d5d59f1746cef602974498";
9 inputs.nixpkgs.follows = "nixpkgs";
10 };
11 hyprpicker-git = {
12 url = "github:hyprwm/hyprpicker/v0.4.1";
13 inputs.nixpkgs.follows = "nixpkgs";
14 };
15 hyprland = {
16 url = "github:hyprwm/hyprland/v0.45.2";
17 inputs.nixpkgs.follows = "nixpkgs";
18 };
19 nixgl = {
20 url = "github:nix-community/nixGL/310f8e49a149e4c9ea52f1adf70cdc768ec53f8a";
21 inputs.nixpkgs.follows = "nixpkgs";
22 };
23 wpaperd = {
24 url = "github:danyspin97/wpaperd/7865433233ff58f33ca4af94fd5031e26f409f52";
25 inputs.nixpkgs.follows = "nixpkgs";
26 };
27 #mozff.url = "github:mozilla/nixpkgs-mozilla";
28 };
29
30 outputs = { nixpkgs, home-manager, hyprpicker-git, hyprland, nixgl, wpaperd, ... }@inputs:
31 let
32 system = "x86_64-linux";
33 pkgs = nixpkgs.legacyPackages.${system};
34 overlays = [
35 hyprpicker-git.overlays.default
36 nixgl.overlay
37 #mozff.overlays.firefox
38 ];
39 in {
40 homeConfigurations."ryan" = home-manager.lib.homeManagerConfiguration {
41 inherit pkgs;
42
43 # Specify your home configuration modules here, for example,
44 # the path to your home.nix.
45 modules = [
46 {nixpkgs.overlays = overlays;}
47 ./home.nix
48 {
49 _module.args = {
50 inherit hyprland;
51 inherit nixgl;
52 inherit wpaperd;
53 };
54 }
55 ];
56
57 # Optionally use extraSpecialArgs
58 # to pass through arguments to home.nix
59 # extraSpecialArgs = { inherit overlays; };
60 };
61 };
62 }