nixos-config/hosts/voyager/configuration.nix

99 lines
1.9 KiB
Nix

{ config, pkgs, ... }:
{
imports =
[
../../base.nix
../../common/metrics-exporters.nix
./hardware-configuration.nix
./filesystems.nix
./exports.nix
#./vms.nix
./services/nginx
./services/kanidm.nix
./services/jellyfin.nix
./services/metrics
./services/flame.nix
./services/hedgedoc.nix
./services/code-server.nix
# TODO:
# x Boot
# x Mount ZFS
# x Monitoring server
# x Podman
# x Flame
# - Transmission
# x Jellyfin
# x NFS imports
# - NFS exports
# - FreeBSD VM
# - Kali VM
# x Kerberos / IPA / Kanidm
# - Backup system
];
networking = {
hostName = "voyager";
defaultGateway = "192.168.10.1";
nameservers = [ "192.168.10.1" "1.1.1.1" ];
interfaces.eno1.ipv4 = {
addresses = [
{ address = "192.168.10.165"; prefixLength = 24; }
];
};
hostId = "8e84b235";
};
sops.defaultSopsFile = ../../secrets/voyager/voyager.yaml;
sops.age.keyFile = "/var/lib/sops-nix/key.txt";
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 = [];
};
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
" ...
'';
}
)
zfs
screen
exa
];
networking.firewall.allowedTCPPorts = [ 22 ];
system.stateVersion = "22.11";
}