home-config/nix-home-manager/flake.nix

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