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