Add libvirt, fix grafana uids

This commit is contained in:
2023-04-16 20:30:31 +02:00
parent afc4b9f4bb
commit c2fd2ef75b
7 changed files with 568 additions and 556 deletions

View File

@@ -3,33 +3,34 @@
{
imports =
[
../../base.nix
../../base.nix
../../common/metrics-exporters.nix
./hardware-configuration.nix
./containers.nix
./vms.nix
./services/nginx
./services/metrics
# TODO:
# x Boot
# x Mount ZFS
# x Monitoring server
# x Podman
# x Flame
# - Transmission
# - Jellyfin
# - NFS exports
# - FreeBSD VM
# - Kali VM
# - Kerberos / IPA
];
# TODO:
# x Boot
# x Mount ZFS
# x Monitoring server
# x Podman
# x Flame
# - Transmission
# - Jellyfin
# - NFS exports
# - FreeBSD VM
# - Kali VM
# - Kerberos / IPA
];
boot = {
zfs.extraPools = [ "tank" ];
supportedFilesystems = [ "zfs" ];
kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
};
services.zfs.autoScrub.enable = true;
networking = {
hostName = "voyager";
@@ -37,7 +38,7 @@
nameservers = [ "192.168.10.1" "1.1.1.1" ];
interfaces.eno1.ipv4 = {
addresses = [
{ address = "192.168.10.165"; prefixLength = 24; }
{ address = "192.168.10.165"; prefixLength = 24; }
];
};
hostId = "8e84b235";
@@ -46,10 +47,10 @@
environment.variables = { EDITOR = "vim"; };
environment.systemPackages = with pkgs; [
((vim_configurable.override { }).customize{
name = "vim";
vimrcConfig.packages.myplugins = with pkgs.vimPlugins; {
start = [ vim-nix vim-lastplace ];
opt = [];
name = "vim";
vimrcConfig.packages.myplugins = with pkgs.vimPlugins; {
start = [ vim-nix vim-lastplace ];
opt = [];
};
vimrcConfig.customRC = ''
" your custom vimrc
@@ -82,7 +83,7 @@
}
)
zfs
];
];
networking.firewall.allowedTCPPorts = [ 22 ];