You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
2.2 KiB
Nix

{
description = "Home Manager configuration of hammy";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-index-database.url = "github:Mic92/nix-index-database";
nix-index-database.inputs.nixpkgs.follows = "nixpkgs";
nur.url = "github:nix-community/nur";
nekowinston-nur.url = "github:nekowinston/nur";
git-view.url = "github:sgoudham/git-view/v1.0.0";
neovim-nightly-overlay.url = "github:nix-community/neovim-nightly-overlay";
};
nixConfig = {
extra-substituters = [
"https://nekowinston.cachix.org"
"https://nix-community.cachix.org"
];
extra-trusted-public-keys = [
"nekowinston.cachix.org-1:lucpmaO+JwtoZj16HCO1p1fOv68s/RL1gumpVzRHRDs="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
extra-trusted-users = ["@wheel"];
tarball-ttl = 604800;
warn-dirty = false;
};
outputs = {
nixpkgs,
nur,
nekowinston-nur,
home-manager,
nix-index-database,
neovim-nightly-overlay,
git-view,
...
}: let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
overlays = final: prev: {
git-view = git-view.packages.${system}.default;
nur = import nur {
nurpkgs = prev;
pkgs = prev;
repoOverrides = {
nekowinston = nekowinston-nur.packages.${prev.system};
};
};
};
in {
homeConfigurations."hammy" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
# Specify your home configuration modules here, for example,
# the path to your home.nix.
modules = [
./home
nix-index-database.hmModules.nix-index
({config, ...}: {
config = {
nixpkgs.overlays = [
neovim-nightly-overlay.overlay
overlays
];
};
})
];
extraSpecialArgs = {
flakePath =
if pkgs.stdenv.isDarwin
then "/Users/hammy/.config/home-manager"
else "/home/hammy/.config/home-manager";
};
};
};
}