-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
86 lines (80 loc) · 2.41 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{
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";
catppuccin-whiskers.url = "github:catppuccin/whiskers";
catppuccin-catwalk.url = "github:catppuccin/catwalk";
};
nixConfig = {
extra-substituters = [
"https://nekowinston.cachix.org"
"https://nix-community.cachix.org"
"https://catppuccin.cachix.org"
];
extra-trusted-public-keys = [
"nekowinston.cachix.org-1:lucpmaO+JwtoZj16HCO1p1fOv68s/RL1gumpVzRHRDs="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"catppuccin.cachix.org-1:noG/4HkbhJb+lUAdKrph6LaozJvAeEEZj4N732IysmU="
];
extra-trusted-users = ["@wheel"];
warn-dirty = false;
};
outputs = {
nixpkgs,
nur,
nekowinston-nur,
home-manager,
nix-index-database,
git-view,
catppuccin-whiskers,
catppuccin-catwalk,
...
}: let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
overlays = final: prev: {
git-view = git-view.packages.${system}.default;
whiskers = catppuccin-whiskers.packages.${pkgs.system}.default;
catwalk = catppuccin-catwalk.packages.${pkgs.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 = [
overlays
];
};
})
];
extraSpecialArgs = {
flakePath =
if pkgs.stdenv.isDarwin
then "/Users/hammy/.config/home-manager"
else "/home/hammy/.config/home-manager";
};
};
};
}