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