56 lines
1.3 KiB
Nix
56 lines
1.3 KiB
Nix
{
|
|
lenovo = {
|
|
hostname = "lenovo";
|
|
system = "x86_64-linux";
|
|
users = [
|
|
"andromeda"
|
|
"mtgmonkey"
|
|
];
|
|
modules = [
|
|
];
|
|
};
|
|
"109-199-104-83" = {
|
|
hostname = "109-199-104-83";
|
|
system = "x86_64-linux";
|
|
users = [];
|
|
modules = [
|
|
# hardware configuration
|
|
# verbatim as `nixos-generate-config` AND `system.stateVersion`
|
|
./machines/109-199-104-83.nix
|
|
|
|
# boot process
|
|
# grub boot on /dev/sda
|
|
./modules/nixos/boot/109-199-104-83.nix
|
|
|
|
# networking
|
|
./modules/nixos/networking/domains/galaxious.de.nix
|
|
./modules/nixos/networking/networks/109-199-104-83.nix
|
|
|
|
# ssh through port 5522 among other things
|
|
# andromeda@lenovo is the only user allowed access
|
|
./modules/nixos/networking/hard-ssh.nix
|
|
./modules/nixos/networking/ssh-as-root.nix
|
|
({config, ...}: {users.users.root.openssh.authorizedKeys.keys = [config.pub-keys.ssh.andromeda];})
|
|
|
|
# boilerplate settings
|
|
./modules/nixos/common.nix
|
|
|
|
# simple-nixos-mailserver email server
|
|
# mail.domain
|
|
./modules/nixos/mailserver.nix
|
|
|
|
# roundcube webmail client
|
|
# webmail.domain
|
|
./modules/nixos/roundcube.nix
|
|
|
|
# zulip chat client
|
|
# chat.domain
|
|
# zulip chat server
|
|
# zulip.domain
|
|
./modules/nixos/zulip.nix
|
|
{
|
|
}
|
|
];
|
|
};
|
|
}
|