dotfiles.nix/flake.nix
2022-12-29 10:37:32 -08:00

51 lines
1.3 KiB
Nix

{
description = "Willem's Home Manager configuration";
inputs = {
nixpkgs-22_11.url = "github:NixOS/nixpkgs/nixos-22.11";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nur.url = "github:nix-community/NUR";
};
outputs = { self, nixpkgs-unstable, nixpkgs-22_11, home-manager, nur, ... }:
let
system = "aarch64-darwin";
pkgs = import nixpkgs-22_11 {
inherit system;
overlays = [
(final: prev: {
nixpkgs-unstable = import nixpkgs-unstable {
inherit system;
overlays = [ ];
};
})
];
};
nurNoPkgs = import nur {
nurpkgs = pkgs;
pkgs = throw "nixpkgs eval";
};
in {
homeConfigurations.willem = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
# Specify your home configuration modules here, for example,
# the path to your home.nix.
modules = [
./home.nix
];
# Optionally use extraSpecialArgs
# to pass through arguments to home.nix
extraSpecialArgs = {
inherit nurNoPkgs;
};
};
};
}