home-config/nix-home-manager/flake.nix
adf9468e7a4dcd88f38233e9fc99f99610f080bc
· 1.2 KB · 44 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 | superfile = { |
| 16 | url = "github:MHNightCat/superfile"; |
| 17 | inputs.nixpkgs.follows = "nixpkgs"; |
| 18 | }; |
| 19 | }; |
| 20 | |
| 21 | outputs = { nixpkgs, home-manager, hyprpicker-git, superfile, ... }: |
| 22 | let |
| 23 | system = "x86_64-linux"; |
| 24 | pkgs = nixpkgs.legacyPackages.${system}; |
| 25 | overlays = [ |
| 26 | hyprpicker-git.overlays.default |
| 27 | ]; |
| 28 | in { |
| 29 | homeConfigurations."ryan" = home-manager.lib.homeManagerConfiguration { |
| 30 | inherit pkgs; |
| 31 | |
| 32 | # Specify your home configuration modules here, for example, |
| 33 | # the path to your home.nix. |
| 34 | modules = [ |
| 35 | ./home.nix |
| 36 | {nixpkgs.overlays = overlays;} |
| 37 | ]; |
| 38 | |
| 39 | # Optionally use extraSpecialArgs |
| 40 | # to pass through arguments to home.nix |
| 41 | extraSpecialArgs = {inherit inputs;}; |
| 42 | }; |
| 43 | }; |
| 44 | } |