forked from AlphaTechnolog/nixdots
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
93 lines (81 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
87
88
89
90
91
92
93
{
description = "My NixOS Configuration Files! home-manager + flakes + nix = power!";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = github:nix-community/home-manager;
inputs.nixpkgs.follows = "nixpkgs";
};
neovim-nightly.url = "github:nix-community/neovim-nightly-overlay";
nixpkgs-f2k.url = "github:fortuneteller2k/nixpkgs-f2k";
nur.url = github:nix-community/NUR;
hyprland = {
url = github:hyprwm/Hyprland;
inputs.nixpkgs.follows = "nixpkgs";
};
sf-mono-liga-src = {
url = "github:shaunsingh/SFMono-Nerd-Font-Ligaturized";
flake = false;
};
st = {
url = github:AlphaTechnolog/st;
flake = false;
};
luaFormatter = {
type = "git";
url = "https://github.com/Koihik/LuaFormatter.git";
submodules = true;
flake = false;
};
};
outputs = { self, nixpkgs, home-manager, nixpkgs-f2k, luaFormatter, ... }@inputs:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
config = {
system = system;
allowUnfree = true;
};
lib = nixpkgs.lib;
overlays = with inputs; [
(final: _:
let
inherit (final) system;
in {
neovim-nightly = neovim.packages."${system}".neovim;
st = pkgs.callPackage ./pkgs/st.nix {
src = st;
conf = import ./hosts/progs-conf/st.nix;
};
} // (with nixpkgs-f2k.packages.${system}; {
awesome = awesome-git;
picom = picom-git;
}) // {
luaFormatter-src = luaFormatter;
sf-mono-liga-bin = pkgs.callPackage ./pkgs/sfmono-nf.nix {
src = inputs.sf-mono-liga-src;
};
}
)
(final: prev: {
luaFormatter = prev.callPackage ./pkgs/luaFormatter.nix {
src = prev.luaFormatter-src;
version = "999-master";
};
})
neovim-nightly.overlay
nixpkgs-f2k.overlays.default
nur.overlay
];
in {
nixosConfigurations = {
ultra = import ./hosts/ultra {
inherit config nixpkgs overlays inputs system home-manager;
};
fancy = import ./hosts/fancy {
inherit config nixpkgs overlays inputs system home-manager;
hyprland = inputs.hyprland;
};
};
};
}