From 9396554c2141f3c4e14bcbd71d0f31b9ff7816d6 Mon Sep 17 00:00:00 2001 From: Ryan Schanzenbacher Date: Fri, 16 Feb 2024 20:10:31 -0500 Subject: flakes work! --- home-config/nix-home-manager/flake.nix | 39 ++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 home-config/nix-home-manager/flake.nix (limited to 'home-config/nix-home-manager/flake.nix') diff --git a/home-config/nix-home-manager/flake.nix b/home-config/nix-home-manager/flake.nix new file mode 100644 index 0000000..8e1b937 --- /dev/null +++ b/home-config/nix-home-manager/flake.nix @@ -0,0 +1,39 @@ +{ + description = "Home Manager configuration of ryan"; + + inputs = { + # Specify the source of Home Manager and Nixpkgs. + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + home-manager = { + url = "github:nix-community/home-manager"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + hyprpicker-git = { + url = "github:hyprwm/hyprpicker"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + }; + + outputs = { nixpkgs, home-manager, hyprpicker-git, ... }: + let + system = "x86_64-linux"; + pkgs = nixpkgs.legacyPackages.${system}; + overlays = [ + hyprpicker-git.overlays.default + ]; + in { + homeConfigurations."ryan" = home-manager.lib.homeManagerConfiguration { + inherit pkgs; + + # Specify your home configuration modules here, for example, + # the path to your home.nix. + modules = [ + ./home.nix + {nixpkgs.overlays = overlays;} + ]; + + # Optionally use extraSpecialArgs + # to pass through arguments to home.nix + }; + }; +} -- cgit v1.2.3