home-config/nix-home-manager/flake.nix
5855a0331c0db63804d5a9db4d86c10c3bf7cc0d
· 3.1 KB · 89 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/2fad6eac6077f03fe109c4d4eb171cf96791faa4"; |
| 7 | home-manager = { |
| 8 | url = "github:nix-community/home-manager/780be8ef503a28939cf9dc7996b48ffb1a3e04c6"; |
| 9 | inputs.nixpkgs.follows = "nixpkgs"; |
| 10 | }; |
| 11 | hyprlock = { |
| 12 | url = "github:hyprwm/hyprlock/98b86752fe4867bd14ef96a92ea788229af93130"; |
| 13 | #inputs.nixpkgs.follows = "nixpkgs"; |
| 14 | }; |
| 15 | hyprpicker-git = { |
| 16 | url = "github:hyprwm/hyprpicker/v0.4.5"; |
| 17 | inputs.nixpkgs.follows = "nixpkgs"; |
| 18 | }; |
| 19 | hyprland = { |
| 20 | url = "github:hyprwm/hyprland/v0.52.1"; |
| 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/087a1edb5afd78434806f2f185755d0ced7f26ab"; |
| 30 | inputs.nixpkgs.follows = "nixpkgs"; |
| 31 | inputs.rust-overlay.url = "github:oxalica/rust-overlay/d914a744a83098eeb28125d2848ad383b209223f"; |
| 32 | }; |
| 33 | mozff = { |
| 34 | url = "github:nix-community/flake-firefox-nightly/3391372604cd3def19e6df88a51f1882aabcd59f"; |
| 35 | inputs.nixpkgs.follows = "nixpkgs"; |
| 36 | }; |
| 37 | clipboard-sync = { |
| 38 | url = "github:dnut/clipboard-sync/943e49e0a9a16b54bbab3704e99b6cf6ad4ea19f"; |
| 39 | inputs.nixpkgs.follows = "nixpkgs"; |
| 40 | }; |
| 41 | hypr-dynamic-cursors = { |
| 42 | url = "github:VirtCode/hypr-dynamic-cursors/85e6a93f311132d775538c4a016b637b366d2a44"; |
| 43 | inputs.hyprland.follows = "hyprland"; |
| 44 | inputs.nixpkgs.follows = "hyprland/nixpkgs"; |
| 45 | }; |
| 46 | zen-browser = { |
| 47 | url = "github:0xc000022070/zen-browser-flake/504383097cbd6793aa62d1ec2d90d67ce7e4542e"; |
| 48 | inputs.nixpkgs.follows = "nixpkgs"; |
| 49 | inputs.home-manager.follows = "home-manager"; |
| 50 | }; |
| 51 | }; |
| 52 | |
| 53 | outputs = { nixpkgs, home-manager, hyprland, nixgl, wpaperd, hyprpicker-git, hyprlock, mozff, clipboard-sync, hypr-dynamic-cursors, zen-browser, ... }@inputs: |
| 54 | let |
| 55 | system = "x86_64-linux"; |
| 56 | pkgs = nixpkgs.legacyPackages.${system}; |
| 57 | overlays = [ |
| 58 | #zen-browser.homeModules |
| 59 | ]; |
| 60 | in { |
| 61 | homeConfigurations."ryan" = home-manager.lib.homeManagerConfiguration { |
| 62 | inherit pkgs; |
| 63 | |
| 64 | # Specify your home configuration modules here, for example, |
| 65 | # the path to your home.nix. |
| 66 | modules = [ |
| 67 | {nixpkgs.overlays = overlays;} |
| 68 | ./home.nix |
| 69 | zen-browser.homeModules.beta |
| 70 | { |
| 71 | _module.args = { |
| 72 | inherit hyprland; |
| 73 | inherit nixgl; |
| 74 | inherit wpaperd; |
| 75 | inherit hyprlock; |
| 76 | inherit hyprpicker-git; |
| 77 | inherit mozff; |
| 78 | inherit clipboard-sync; |
| 79 | inherit hypr-dynamic-cursors; |
| 80 | }; |
| 81 | } |
| 82 | ]; |
| 83 | |
| 84 | # Optionally use extraSpecialArgs |
| 85 | # to pass through arguments to home.nix |
| 86 | # extraSpecialArgs = { inherit overlays; }; |
| 87 | }; |
| 88 | }; |
| 89 | } |