home-config/nix-home-manager/flake.nix
5db04dd0080ae651b0806ddb4a42b02f5cbda75b
· 2.9 KB · 86 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/a84ebe20c6bc2ecbcfb000a50776219f48d134cc"; |
| 7 | home-manager = { |
| 8 | url = "github:nix-community/home-manager/693840c01b9bef9e54100239cef937e53d4661bf"; |
| 9 | inputs.nixpkgs.follows = "nixpkgs"; |
| 10 | }; |
| 11 | hyprlock = { |
| 12 | url = "github:hyprwm/hyprlock/1ebbc35c55ba9e43d53c4f1038c897be7239c903"; |
| 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/1f0fd79b910b798e650d6f0c546273bc83422526"; |
| 21 | inputs.nixpkgs.follows = "nixpkgs"; |
| 22 | }; |
| 23 | nixgl = { |
| 24 | url = "github:ryan77627/nixGL/3865170cbc23b32ec7cc8df1ec811fd44b6c2a58"; |
| 25 | inputs.nixpkgs.follows = "nixpkgs"; |
| 26 | }; |
| 27 | wpaperd = { |
| 28 | url = "github:danyspin97/wpaperd/b0b7e66fd32dca36c431a174784a2e87af7edb77"; |
| 29 | inputs.nixpkgs.follows = "nixpkgs"; |
| 30 | }; |
| 31 | mozff = { |
| 32 | url = "github:nix-community/flake-firefox-nightly/3391372604cd3def19e6df88a51f1882aabcd59f"; |
| 33 | inputs.nixpkgs.follows = "nixpkgs"; |
| 34 | }; |
| 35 | clipboard-sync = { |
| 36 | url = "github:dnut/clipboard-sync/943e49e0a9a16b54bbab3704e99b6cf6ad4ea19f"; |
| 37 | inputs.nixpkgs.follows = "nixpkgs"; |
| 38 | }; |
| 39 | hypr-dynamic-cursors = { |
| 40 | url = "github:VirtCode/hypr-dynamic-cursors/fecc7b9b828d5b58e58d395c6544ed16b180008f"; |
| 41 | inputs.hyprland.follows = "hyprland"; |
| 42 | inputs.nixpkgs.follows = "hyprland/nixpkgs"; |
| 43 | }; |
| 44 | zen-browser = { |
| 45 | url = "github:0xc000022070/zen-browser-flake/165ee672e6b17a8bcc0a3fb51fab3f79715cc1f3"; |
| 46 | inputs.nixpkgs.follows = "nixpkgs"; |
| 47 | }; |
| 48 | }; |
| 49 | |
| 50 | outputs = { nixpkgs, home-manager, hyprland, nixgl, wpaperd, hyprpicker-git, hyprlock, mozff, clipboard-sync, hypr-dynamic-cursors, zen-browser, ... }@inputs: |
| 51 | let |
| 52 | system = "x86_64-linux"; |
| 53 | pkgs = nixpkgs.legacyPackages.${system}; |
| 54 | overlays = [ |
| 55 | #nixgl.overlay |
| 56 | ]; |
| 57 | in { |
| 58 | homeConfigurations."ryan" = home-manager.lib.homeManagerConfiguration { |
| 59 | inherit pkgs; |
| 60 | |
| 61 | # Specify your home configuration modules here, for example, |
| 62 | # the path to your home.nix. |
| 63 | modules = [ |
| 64 | {nixpkgs.overlays = overlays;} |
| 65 | ./home.nix |
| 66 | { |
| 67 | _module.args = { |
| 68 | inherit hyprland; |
| 69 | inherit nixgl; |
| 70 | inherit wpaperd; |
| 71 | inherit hyprlock; |
| 72 | inherit hyprpicker-git; |
| 73 | inherit mozff; |
| 74 | inherit clipboard-sync; |
| 75 | inherit hypr-dynamic-cursors; |
| 76 | inherit zen-browser; |
| 77 | }; |
| 78 | } |
| 79 | ]; |
| 80 | |
| 81 | # Optionally use extraSpecialArgs |
| 82 | # to pass through arguments to home.nix |
| 83 | # extraSpecialArgs = { inherit overlays; }; |
| 84 | }; |
| 85 | }; |
| 86 | } |