summaryrefslogtreecommitdiff
path: root/home-config/nix-home-manager/flake.nix
blob: 5b87cdd716ebde29132ddc652a826c1af47e945f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
{
  description = "Home Manager configuration of ryan";

  inputs = {
    # Specify the source of Home Manager and Nixpkgs.
    nixpkgs.url = "github:nixos/nixpkgs/2c8d3f48d33929642c1c12cd243df4cc7d2ce434";
    home-manager = {
      url = "github:nix-community/home-manager/579a71b948533667c6c65e603f18990bdffc8530";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    hyprlock = {
      url = "github:hyprwm/hyprlock/1ebbc35c55ba9e43d53c4f1038c897be7239c903";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    hyprpicker-git = {
      url = "github:hyprwm/hyprpicker/c3777320b358bb28a0f2112441377fe452d77ea8";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    hyprland = {
      url = "github:hyprwm/hyprland/382f0f23f144e11bdccac6c5d3c1ed415b4b1855";
      inputs.nixpkgs.follows = "nixpkgs";
      inputs.hyprutils.url = "github:hyprwm/hyprutils/v0.6.0";
    };
    nixgl = {
      url = "github:ryan77627/nixGL/3865170cbc23b32ec7cc8df1ec811fd44b6c2a58";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    wpaperd = {
      url = "github:danyspin97/wpaperd/b0b7e66fd32dca36c431a174784a2e87af7edb77";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    mozff = {
      url = "github:nix-community/flake-firefox-nightly/3391372604cd3def19e6df88a51f1882aabcd59f";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    clipboard-sync = {
      url = "github:dnut/clipboard-sync/943e49e0a9a16b54bbab3704e99b6cf6ad4ea19f";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    hypr-dynamic-cursors = {
        url = "github:VirtCode/hypr-dynamic-cursors/07a9ca62466edf58a251a3d9d1470f8d502ffee0";
        inputs.hyprland.follows = "hyprland";
        inputs.nixpkgs.follows = "hyprland/nixpkgs";
    };
    zen-browser = {
        url = "github:0xc000022070/zen-browser-flake/5667f0661aa52587f1f86ed7206ddf87327616a9";
        inputs.nixpkgs.follows = "nixpkgs";
        inputs.home-manager.follows = "home-manager";
    };
  };

  outputs = { nixpkgs, home-manager, hyprland, nixgl, wpaperd, hyprpicker-git, hyprlock, mozff, clipboard-sync, hypr-dynamic-cursors, zen-browser, ... }@inputs:
    let
      system = "x86_64-linux";
      pkgs = nixpkgs.legacyPackages.${system};
      overlays = [
        #zen-browser.homeModules
      ];
    in {
      homeConfigurations."ryan" = home-manager.lib.homeManagerConfiguration {
        inherit pkgs;

        # Specify your home configuration modules here, for example,
        # the path to your home.nix.
        modules = [
          {nixpkgs.overlays = overlays;}
          ./home.nix
          zen-browser.homeModules.beta
          {
            _module.args = {
              inherit hyprland;
              inherit nixgl;
              inherit wpaperd;
              inherit hyprlock;
              inherit hyprpicker-git;
              inherit mozff;
              inherit clipboard-sync;
              inherit hypr-dynamic-cursors;
            };
          }
        ];

        # Optionally use extraSpecialArgs
        # to pass through arguments to home.nix
        # extraSpecialArgs = { inherit overlays; };
      };
    };
}