home-config/nix-home-manager/flake.nix
b469379f9a9f13686516f35369e532fe4975dacf
· 3.0 KB · 88 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/2c8d3f48d33929642c1c12cd243df4cc7d2ce434"; |
| 7 | home-manager = { |
| 8 | url = "github:nix-community/home-manager/579a71b948533667c6c65e603f18990bdffc8530"; |
| 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/382f0f23f144e11bdccac6c5d3c1ed415b4b1855"; |
| 21 | inputs.nixpkgs.follows = "nixpkgs"; |
| 22 | inputs.hyprutils.url = "github:hyprwm/hyprutils/v0.6.0"; |
| 23 | }; |
| 24 | nixgl = { |
| 25 | url = "github:ryan77627/nixGL/3865170cbc23b32ec7cc8df1ec811fd44b6c2a58"; |
| 26 | inputs.nixpkgs.follows = "nixpkgs"; |
| 27 | }; |
| 28 | wpaperd = { |
| 29 | url = "github:danyspin97/wpaperd/f891ed0d36d3b7a51897da59c3d6e213935afc93"; |
| 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/07a9ca62466edf58a251a3d9d1470f8d502ffee0"; |
| 42 | inputs.hyprland.follows = "hyprland"; |
| 43 | inputs.nixpkgs.follows = "hyprland/nixpkgs"; |
| 44 | }; |
| 45 | zen-browser = { |
| 46 | url = "github:0xc000022070/zen-browser-flake/55681a87d6e094fa93d260993e8c154208e70a69"; |
| 47 | inputs.nixpkgs.follows = "nixpkgs"; |
| 48 | inputs.home-manager.follows = "home-manager"; |
| 49 | }; |
| 50 | }; |
| 51 | |
| 52 | outputs = { nixpkgs, home-manager, hyprland, nixgl, wpaperd, hyprpicker-git, hyprlock, mozff, clipboard-sync, hypr-dynamic-cursors, zen-browser, ... }@inputs: |
| 53 | let |
| 54 | system = "x86_64-linux"; |
| 55 | pkgs = nixpkgs.legacyPackages.${system}; |
| 56 | overlays = [ |
| 57 | #zen-browser.homeModules |
| 58 | ]; |
| 59 | in { |
| 60 | homeConfigurations."ryan" = home-manager.lib.homeManagerConfiguration { |
| 61 | inherit pkgs; |
| 62 | |
| 63 | # Specify your home configuration modules here, for example, |
| 64 | # the path to your home.nix. |
| 65 | modules = [ |
| 66 | {nixpkgs.overlays = overlays;} |
| 67 | ./home.nix |
| 68 | zen-browser.homeModules.beta |
| 69 | { |
| 70 | _module.args = { |
| 71 | inherit hyprland; |
| 72 | inherit nixgl; |
| 73 | inherit wpaperd; |
| 74 | inherit hyprlock; |
| 75 | inherit hyprpicker-git; |
| 76 | inherit mozff; |
| 77 | inherit clipboard-sync; |
| 78 | inherit hypr-dynamic-cursors; |
| 79 | }; |
| 80 | } |
| 81 | ]; |
| 82 | |
| 83 | # Optionally use extraSpecialArgs |
| 84 | # to pass through arguments to home.nix |
| 85 | # extraSpecialArgs = { inherit overlays; }; |
| 86 | }; |
| 87 | }; |
| 88 | } |