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

365a13de3e19c66f6bb2ffb806e8086a068ffc25 · 2.7 KB · 82 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/d74a2335ac9c133d6bbec9fc98d91a77f1604c1f";
7 home-manager = {
8 url = "github:nix-community/home-manager/53c587d263f94aaf6a281745923c76bbec62bcf3";
9 inputs.nixpkgs.follows = "nixpkgs";
10 };
11 hyprlock = {
12 url = "github:hyprwm/hyprlock/v0.6.2";
13 inputs.nixpkgs.follows = "nixpkgs";
14 };
15 hyprpicker-git = {
16 url = "github:hyprwm/hyprpicker/c3777320b358bb28a0f2112441377fe452d77ea8";
17 inputs.nixpkgs.follows = "nixpkgs";
18 };
19 hyprland = {
20 url = "github:hyprwm/hyprland/v0.47.2";
21 inputs.nixpkgs.follows = "nixpkgs";
22 #inputs.hyprutils.url = "github:/hyprwm/hyprutils/6a8bc9d2a4451df12f5179dc0b1d2d46518a90ab";
23 };
24 nixgl = {
25 url = "github:ryan77627/nixGL/3865170cbc23b32ec7cc8df1ec811fd44b6c2a58";
26 inputs.nixpkgs.follows = "nixpkgs";
27 };
28 wpaperd = {
29 url = "github:danyspin97/wpaperd/b0b7e66fd32dca36c431a174784a2e87af7edb77";
30 inputs.nixpkgs.follows = "nixpkgs";
31 };
32 mozff = {
33 url = "github:nix-community/flake-firefox-nightly/3391372604cd3def19e6df88a51f1882aabcd59f";
34 inputs.nixpkgs.follows = "nixpkgs";
35 };
36 clipboard-sync = {
37 url = "github:dnut/clipboard-sync/943e49e0a9a16b54bbab3704e99b6cf6ad4ea19f";
38 inputs.nixpkgs.follows = "nixpkgs";
39 };
40 hypr-dynamic-cursors = {
41 url = "github:VirtCode/hypr-dynamic-cursors/fd6214629937949ecd8a39f4b5ebbce2afac0dd5";
42 inputs.hyprland.follows = "hyprland";
43 inputs.nixpkgs.follows = "hyprland/nixpkgs";
44 };
45 };
46
47 outputs = { nixpkgs, home-manager, hyprland, nixgl, wpaperd, hyprpicker-git, hyprlock, mozff, clipboard-sync, hypr-dynamic-cursors, ... }@inputs:
48 let
49 system = "x86_64-linux";
50 pkgs = nixpkgs.legacyPackages.${system};
51 overlays = [
52 #nixgl.overlay
53 ];
54 in {
55 homeConfigurations."ryan" = home-manager.lib.homeManagerConfiguration {
56 inherit pkgs;
57
58 # Specify your home configuration modules here, for example,
59 # the path to your home.nix.
60 modules = [
61 {nixpkgs.overlays = overlays;}
62 ./home.nix
63 {
64 _module.args = {
65 inherit hyprland;
66 inherit nixgl;
67 inherit wpaperd;
68 inherit hyprlock;
69 inherit hyprpicker-git;
70 inherit mozff;
71 inherit clipboard-sync;
72 inherit hypr-dynamic-cursors;
73 };
74 }
75 ];
76
77 # Optionally use extraSpecialArgs
78 # to pass through arguments to home.nix
79 # extraSpecialArgs = { inherit overlays; };
80 };
81 };
82 }