2024-02-18 22:09:17 +01:00
|
|
|
{ config, pkgs, values, lib, ... }:
|
|
|
|
{
|
|
|
|
containers.bikkje = {
|
|
|
|
autoStart = true;
|
2023-12-03 04:18:09 +01:00
|
|
|
interfaces = [ "enp4s0f0" ];
|
2024-02-18 22:09:17 +01:00
|
|
|
|
|
|
|
config = { config, pkgs, ... }: {
|
2023-12-03 04:18:09 +01:00
|
|
|
imports = [
|
2024-03-30 21:02:55 +01:00
|
|
|
../../../modules/home-areas.nix
|
|
|
|
./services/kerberos
|
2023-12-03 04:18:09 +01:00
|
|
|
];
|
|
|
|
|
2024-02-18 22:09:17 +01:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
zsh
|
|
|
|
bash
|
|
|
|
fish
|
|
|
|
tcsh
|
|
|
|
|
|
|
|
alpine
|
|
|
|
mutt
|
|
|
|
mutt-ics
|
|
|
|
mutt-wizard
|
|
|
|
notmuch
|
|
|
|
mailutils
|
|
|
|
procmail
|
|
|
|
|
|
|
|
irssi
|
|
|
|
weechat
|
|
|
|
weechatScripts.edit
|
|
|
|
|
|
|
|
coreutils-full
|
|
|
|
cvs
|
|
|
|
gawk
|
|
|
|
git
|
|
|
|
gnupg
|
|
|
|
gnused
|
|
|
|
groff
|
|
|
|
less
|
|
|
|
p7zip
|
|
|
|
rcs
|
|
|
|
screen
|
|
|
|
tmux
|
|
|
|
tree
|
|
|
|
unzip
|
|
|
|
zip
|
|
|
|
|
|
|
|
emacs
|
|
|
|
helix
|
|
|
|
joe
|
|
|
|
micro
|
|
|
|
nano
|
|
|
|
neovim
|
|
|
|
|
|
|
|
autossh
|
|
|
|
inetutils
|
|
|
|
lynx
|
|
|
|
mosh
|
|
|
|
rsync
|
|
|
|
w3m
|
|
|
|
|
|
|
|
clang
|
|
|
|
gcc
|
|
|
|
guile
|
|
|
|
lua
|
|
|
|
perl
|
|
|
|
php
|
|
|
|
python3
|
|
|
|
#(with python3Packages; [
|
|
|
|
# numpy
|
|
|
|
# requests
|
|
|
|
#])
|
|
|
|
ruby
|
|
|
|
tcl
|
|
|
|
];
|
|
|
|
|
|
|
|
services.openssh = {
|
|
|
|
enable = true;
|
|
|
|
ports = [ 22 80 443 ];
|
|
|
|
openFirewall = true;
|
|
|
|
extraConfig = ''
|
|
|
|
PubkeyAcceptedAlgorithms=+ssh-rsa
|
|
|
|
'';
|
|
|
|
|
2024-02-19 15:55:42 +01:00
|
|
|
settings = {
|
|
|
|
GatewayPorts = "yes";
|
|
|
|
PermitRootLogin = "yes";
|
|
|
|
};
|
2024-02-18 22:09:17 +01:00
|
|
|
};
|
|
|
|
|
2024-02-19 15:55:42 +01:00
|
|
|
users.motd = builtins.readFile ../../misc/motd;
|
|
|
|
|
2024-02-18 22:09:17 +01:00
|
|
|
networking = {
|
|
|
|
firewall.enable = true;
|
|
|
|
# Use systemd-resolved inside the container
|
|
|
|
# Workaround for bug https://github.com/NixOS/nixpkgs/issues/162686
|
|
|
|
useHostResolvConf = lib.mkForce false;
|
|
|
|
hostName = "bikkje";
|
|
|
|
};
|
2023-12-03 04:18:09 +01:00
|
|
|
|
|
|
|
systemd.network.enable = true;
|
|
|
|
systemd.network.networks."30-enp4s0f0" = values.defaultNetworkConfig // {
|
|
|
|
matchConfig.Name = "enp4s0f0";
|
2024-02-18 22:09:17 +01:00
|
|
|
address = with values.hosts.bikkje; [ (ipv4 + "/25") (ipv6 + "/64") ];
|
|
|
|
};
|
|
|
|
|
|
|
|
system.stateVersion = "23.11";
|
|
|
|
services.resolved.enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# TODO
|
|
|
|
# - Kerberos Authentication
|
|
|
|
# - Mail Transfer Agent
|
|
|
|
}
|