summaryrefslogtreecommitdiff
path: root/home-config/nix-home-manager/flake.nix
blob: b680ab938bc41d045bf2f83f77586842eed2be25 (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
{
  description = "Home Manager configuration of ryan";

  inputs = {
    # Specify the source of Home Manager and Nixpkgs.
    nixpkgs.url = "github:nixos/nixpkgs/d74a2335ac9c133d6bbec9fc98d91a77f1604c1f";
    home-manager = {
      url = "github:nix-community/home-manager/53c587d263f94aaf6a281745923c76bbec62bcf3";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    hyprlock = {
      url = "github:hyprwm/hyprlock/v0.6.2";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    hyprpicker-git = {
      url = "github:hyprwm/hyprpicker/c3777320b358bb28a0f2112441377fe452d77ea8";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    hyprland = {
      url = "github:hyprwm/hyprland/v0.47.2";
      inputs.nixpkgs.follows = "nixpkgs";
      #inputs.hyprutils.url = "github:/hyprwm/hyprutils/6a8bc9d2a4451df12f5179dc0b1d2d46518a90ab";
    };
    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";
    };
  };

  outputs = { nixpkgs, home-manager, hyprland, nixgl, wpaperd, hyprpicker-git, hyprlock, mozff, ... }@inputs:
    let
      system = "x86_64-linux";
      pkgs = nixpkgs.legacyPackages.${system};
      overlays = [
        #nixgl.overlay
      ];
    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
          {
            _module.args = {
              inherit hyprland;
              inherit nixgl;
              inherit wpaperd;
              inherit hyprlock;
              inherit hyprpicker-git;
              inherit mozff;
            };
          }
        ];

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