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

7f27d13d617b245745e78fc2e79266e99f6d4c1b · 1.6 KB · 55 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 };
24
25 outputs = { nixpkgs, home-manager, hyprpicker-git, hyprland, nixgl, ... }@inputs:
26 let
27 system = "x86_64-linux";
28 pkgs = nixpkgs.legacyPackages.${system};
29 overlays = [
30 hyprpicker-git.overlays.default
31 nixgl.overlay
32 ];
33 in {
34 homeConfigurations."ryan" = home-manager.lib.homeManagerConfiguration {
35 inherit pkgs;
36
37 # Specify your home configuration modules here, for example,
38 # the path to your home.nix.
39 modules = [
40 ./home.nix
41 {nixpkgs.overlays = overlays;}
42 {
43 _module.args = {
44 inherit hyprland;
45 inherit nixgl;
46 };
47 }
48 ];
49
50 # Optionally use extraSpecialArgs
51 # to pass through arguments to home.nix
52 #extraSpecialArgs = { inherit inputs; };
53 };
54 };
55 }