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

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