-
Notifications
You must be signed in to change notification settings - Fork 6
/
flake.nix
140 lines (115 loc) · 3.23 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
{
description = "A highly awesome system configuration.";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
unstable.follows = "nixpkgs";
#utils.url = github:gytis-ivaskevicius/flake-utils-plus;
utils.url = "/home/gytis/Projects/flake-utils-plus";
devshell.url = "github:numtide/devshell";
devshell.inputs.nixpkgs.follows = "nixpkgs";
devshell.inputs.flake-utils.follows = "utils";
nix2vim.url = "/home/gytis/Projects/nix2vim";
#nix2vim.url = "github:gytis-ivaskevicius/nix2vim";
nix2vim.inputs.nixpkgs.follows = "";
nix2vim.inputs.flake-utils.follows = "utils";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
inputs.utils.follows = "utils";
};
forgit-git = {
url = "github:wfxr/forgit";
flake = false;
};
};
outputs =
inputs@{
self,
nix2vim,
utils,
home-manager,
...
}:
let
pkgs = self.pkgs.x86_64-linux.nixpkgs;
mkApp = utils.lib.mkApp;
suites = import ./suites.nix { inherit utils; };
in
with suites.nixosModules;
utils.lib.mkFlake {
inherit self inputs;
inherit (suites) nixosModules;
supportedSystems = [
"aarch64-linux"
"x86_64-linux"
];
channelsConfig.allowUnfree = true;
channelsConfig.allowBroken = false;
channels.nixpkgs.overlaysBuilder = channels: [
(final: prev: {
#inherit (channels.unstable) pure-prompt neovim-unwrapped linuxPackages_latest gcc11Stdenv layan-gtk-theme;
})
];
hosts.GytisOS.modules = suites.desktopModules ++ [
#aarch64Dev
dev
{
security.apparmor.enable = true;
}
./hosts/GytisOS.host.nix
];
hosts.Monday.modules = suites.desktopModules ++ [
aarch64Dev
dev
./hosts/Monday.host.nix
#./config/k3s.nix
];
hosts."gytis-ivaskevicius".modules = suites.desktopModules ++ [
dev
./hosts/gytis-ivaskevicius.host.nix
];
hosts.Morty.modules = suites.desktopModules ++ [
./hosts/Morty.host.nix
];
hosts.NixyServer.modules = [
containers
./hosts/NixyServer.host.nix
];
sharedOverlays = [
self.overlay
nix2vim.overlay
(final: prev: {
#nix2vimDemo = prev.g-neovim;
firefox = prev.g-firefox;
})
];
hostDefaults.modules = [
home-manager.nixosModules.home-manager
] ++ suites.sharedModules;
#############################
### Flake package outputs ###
#############################
outputsBuilder = channels: with channels.nixpkgs;{
defaultPackage = g-neovim;
packages = {
repl = pkgs.callPackage utils.blueprints.fup-repl { };
inherit
nix2vimDemo
g-alacritty
g-firefox
g-lf
g-pistol
g-polybar
g-rofi
g-termite
shell-config
zsh-forgit
;
};
devShell = mkShell {
buildInputs = [ git transcrypt ];
};
};
overlay = import ./overlays;
};
}