-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
60 lines (60 loc) · 1.69 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
{
description = "Home manager configuration - base";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
alejandra = {
url = "github:kamadorueda/alejandra";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
homelib = {
url = "github:signalwalker/nix.home.lib";
inputs.nixpkgs.follows = "nixpkgs";
inputs.alejandra.follows = "alejandra";
inputs.home-manager.follows = "home-manager";
};
# shell
fishFzf = {
url = "github:PatrickF1/fzf.fish";
flake = false;
};
tokyonight = {
url = "github:folke/tokyonight.nvim";
flake = false;
};
};
outputs = inputs @ {
self,
nixpkgs,
...
}:
with builtins; let
std = nixpkgs.lib;
in {
formatter = std.mapAttrs (system: pkgs: pkgs.default) inputs.alejandra.packages;
homeManagerModules.default = {...}: {
imports = [./home-manager.nix];
config = {
home.stateVersion = "22.11";
lib.signal = inputs.homelib.lib;
signal.base.homeManagerSrc = inputs.home-manager;
programs.fish = {
pluginSources = {
fzf = inputs.fishFzf;
};
themes = let
tk = "${inputs.tokyonight}/extras/fish_themes";
in {
tokyonight_day = "${tk}/tokyonight_day.theme";
tokyonight_moon = "${tk}/tokyonight_moon.theme";
tokyonight_night = "${tk}/tokyonight_night.theme";
tokyonight_storm = "${tk}/tokyonight_night.theme";
};
};
};
};
};
}