nixos-config/hosts/voyager/configuration.nix

92 lines
1.7 KiB
Nix
Raw Normal View History

2023-04-15 20:44:47 +02:00
{ config, pkgs, ... }:
{
imports =
[
2023-04-16 20:30:31 +02:00
../../base.nix
2023-04-15 20:44:47 +02:00
../../common/metrics-exporters.nix
./hardware-configuration.nix
2023-04-17 02:23:56 +02:00
./filesystems.nix
2023-04-19 10:48:16 +02:00
./vms.nix
2023-04-15 20:44:47 +02:00
2023-04-16 16:49:08 +02:00
./services/nginx
2023-04-15 20:44:47 +02:00
./services/metrics
2023-04-17 02:23:56 +02:00
./services/flame.nix
./services/jellyfin.nix
2023-04-19 10:48:16 +02:00
./services/code-server.nix
2023-04-16 20:30:31 +02:00
# TODO:
# x Boot
# x Mount ZFS
# x Monitoring server
# x Podman
# x Flame
# - Transmission
2023-04-17 02:23:56 +02:00
# x Jellyfin
# x NFS imports
2023-04-16 20:30:31 +02:00
# - NFS exports
# - FreeBSD VM
# - Kali VM
2023-04-20 11:54:13 +02:00
# - Kerberos / IPA / Kanidm
2023-04-16 20:30:31 +02:00
];
2023-04-15 20:44:47 +02:00
networking = {
hostName = "voyager";
defaultGateway = "192.168.10.1";
nameservers = [ "192.168.10.1" "1.1.1.1" ];
2023-04-16 16:49:08 +02:00
interfaces.eno1.ipv4 = {
2023-04-15 20:44:47 +02:00
addresses = [
2023-04-16 20:30:31 +02:00
{ address = "192.168.10.165"; prefixLength = 24; }
2023-04-15 20:44:47 +02:00
];
};
hostId = "8e84b235";
};
environment.variables = { EDITOR = "vim"; };
environment.systemPackages = with pkgs; [
((vim_configurable.override { }).customize{
2023-04-16 20:30:31 +02:00
name = "vim";
vimrcConfig.packages.myplugins = with pkgs.vimPlugins; {
start = [ vim-nix vim-lastplace ];
opt = [];
2023-04-15 20:44:47 +02:00
};
vimrcConfig.customRC = ''
" your custom vimrc
set number
set relativenumber
set nu rnu
set signcolumn=number
set hlsearch
set smartcase
set incsearch
set autoindent
set expandtab
set shiftwidth=2
set tabstop=2
set smartindent
set smarttab
set ruler
set undolevels=1000
set nocompatible
set backspace=indent,eol,start
" Turn on syntax highlighting by default
syntax on
" ...
'';
}
)
2023-04-16 16:49:08 +02:00
zfs
2023-04-17 02:23:56 +02:00
screen
2023-04-20 11:54:13 +02:00
exa
2023-04-17 02:23:56 +02:00
];
2023-04-15 20:44:47 +02:00
networking.firewall.allowedTCPPorts = [ 22 ];
system.stateVersion = "22.11";
}