home-config/nix-home-manager/flake.nix
6b3c30c700976b22d978fe6247682d6d183260af
· 2.0 KB · 68 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 | hyprlock = { |
| 12 | url = "github:hyprwm/hyprlock/v0.6.1"; |
| 13 | inputs.nixpkgs.follows = "nixpkgs"; |
| 14 | }; |
| 15 | hyprpicker-git = { |
| 16 | url = "github:hyprwm/hyprpicker/v0.4.2"; |
| 17 | inputs.nixpkgs.follows = "nixpkgs"; |
| 18 | }; |
| 19 | hyprland = { |
| 20 | url = "github:hyprwm/hyprland/v0.47.0"; |
| 21 | inputs.nixpkgs.follows = "nixpkgs"; |
| 22 | inputs.aquamarine.url = "github:hyprwm/aquamarine/v0.7.2"; |
| 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.url = "github:mozilla/nixpkgs-mozilla"; |
| 33 | }; |
| 34 | |
| 35 | outputs = { nixpkgs, home-manager, hyprpicker-git, hyprland, nixgl, wpaperd, hyprlock, ... }@inputs: |
| 36 | let |
| 37 | system = "x86_64-linux"; |
| 38 | pkgs = nixpkgs.legacyPackages.${system}; |
| 39 | overlays = [ |
| 40 | nixgl.overlay |
| 41 | #mozff.overlays.firefox |
| 42 | ]; |
| 43 | in { |
| 44 | homeConfigurations."ryan" = home-manager.lib.homeManagerConfiguration { |
| 45 | inherit pkgs; |
| 46 | |
| 47 | # Specify your home configuration modules here, for example, |
| 48 | # the path to your home.nix. |
| 49 | modules = [ |
| 50 | {nixpkgs.overlays = overlays;} |
| 51 | ./home.nix |
| 52 | { |
| 53 | _module.args = { |
| 54 | inherit hyprland; |
| 55 | inherit nixgl; |
| 56 | inherit wpaperd; |
| 57 | inherit hyprlock; |
| 58 | inherit hyprpicker-git; |
| 59 | }; |
| 60 | } |
| 61 | ]; |
| 62 | |
| 63 | # Optionally use extraSpecialArgs |
| 64 | # to pass through arguments to home.nix |
| 65 | # extraSpecialArgs = { inherit overlays; }; |
| 66 | }; |
| 67 | }; |
| 68 | } |