home-config/nix-home-manager/flake.nix
ddd6e973d651b9d9c4d160c8ebb288daa071e259
· 1.9 KB · 63 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/8f3e1f807051e32d8c95cd12b9b421623850a34d"; |
| 7 | home-manager = { |
| 8 | url = "github:nix-community/home-manager/fc52a210b60f2f52c74eac41a8647c1573d2071d"; |
| 9 | inputs.nixpkgs.follows = "nixpkgs"; |
| 10 | }; |
| 11 | hyprpicker-git = { |
| 12 | url = "github:hyprwm/hyprpicker/v0.4.1"; |
| 13 | inputs.nixpkgs.follows = "nixpkgs"; |
| 14 | }; |
| 15 | hyprland = { |
| 16 | url = "github:hyprwm/hyprland/0dc7367a7006cc3cc877d52bf34c4998144bff84"; |
| 17 | inputs.nixpkgs.follows = "nixpkgs"; |
| 18 | inputs.aquamarine.url = "github:hyprwm/aquamarine/main"; |
| 19 | }; |
| 20 | nixgl = { |
| 21 | url = "github:bb010g/nixGL/main"; |
| 22 | inputs.nixpkgs.follows = "nixpkgs"; |
| 23 | }; |
| 24 | wpaperd = { |
| 25 | url = "github:danyspin97/wpaperd/7865433233ff58f33ca4af94fd5031e26f409f52"; |
| 26 | inputs.nixpkgs.follows = "nixpkgs"; |
| 27 | }; |
| 28 | #mozff.url = "github:mozilla/nixpkgs-mozilla"; |
| 29 | }; |
| 30 | |
| 31 | outputs = { nixpkgs, home-manager, hyprpicker-git, hyprland, nixgl, wpaperd, ... }@inputs: |
| 32 | let |
| 33 | system = "x86_64-linux"; |
| 34 | pkgs = nixpkgs.legacyPackages.${system}; |
| 35 | overlays = [ |
| 36 | hyprpicker-git.overlays.default |
| 37 | nixgl.overlay |
| 38 | #mozff.overlays.firefox |
| 39 | ]; |
| 40 | in { |
| 41 | homeConfigurations."ryan" = home-manager.lib.homeManagerConfiguration { |
| 42 | inherit pkgs; |
| 43 | |
| 44 | # Specify your home configuration modules here, for example, |
| 45 | # the path to your home.nix. |
| 46 | modules = [ |
| 47 | {nixpkgs.overlays = overlays;} |
| 48 | ./home.nix |
| 49 | { |
| 50 | _module.args = { |
| 51 | inherit hyprland; |
| 52 | inherit nixgl; |
| 53 | inherit wpaperd; |
| 54 | }; |
| 55 | } |
| 56 | ]; |
| 57 | |
| 58 | # Optionally use extraSpecialArgs |
| 59 | # to pass through arguments to home.nix |
| 60 | # extraSpecialArgs = { inherit overlays; }; |
| 61 | }; |
| 62 | }; |
| 63 | } |