2024-01-12 21:09:13 +01:00
|
|
|
{ pkgs, ... }: {
|
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
|
|
|
|
|
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
programs.fish.enable = true;
|
|
|
|
|
|
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
|
|
|
|
|
|
boot.tmp.cleanOnBoot = true;
|
|
|
|
zramSwap.enable = true;
|
|
|
|
networking.hostName = "lgm-vps1";
|
|
|
|
networking.domain = "contaboserver.net";
|
|
|
|
services.openssh.enable = true;
|
|
|
|
services.openssh.ports = [ 37163 ];
|
|
|
|
|
|
|
|
services.endlessh-go = {
|
|
|
|
enable = true;
|
|
|
|
openFirewall = true;
|
|
|
|
port = 22;
|
|
|
|
};
|
|
|
|
|
2024-01-14 20:54:43 +01:00
|
|
|
services.nginx = {
|
|
|
|
enable = true;
|
|
|
|
virtualHosts."gtnh.lgm.6dcdb488.nip.io" = {
|
|
|
|
root = "/var/www/gtnh";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-01-12 21:09:13 +01:00
|
|
|
programs.mosh.enable = true;
|
2024-01-13 20:00:05 +01:00
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
git
|
|
|
|
vim
|
|
|
|
];
|
2024-01-12 21:09:13 +01:00
|
|
|
|
|
|
|
users.users.lgm = {
|
|
|
|
isNormalUser = true;
|
|
|
|
description = "lgm";
|
2024-01-13 20:00:05 +01:00
|
|
|
extraGroups = [ "wheel""docker"];
|
2024-01-12 21:09:13 +01:00
|
|
|
shell = pkgs.fish;
|
2024-01-14 20:54:43 +01:00
|
|
|
openssh.authorizedKeys.keys = [''sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIHFPA2RhqZIVCLwYuEUDQyOnJ4g1R6IfQyhGqZ2Cvvu+AAAABHNzaDo= lgm@lgm-nixos''];
|
2024-01-12 21:09:13 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
system.stateVersion = "23.11";
|
|
|
|
users.users.root.openssh.authorizedKeys.keys = [''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOcHiU7AJfci41rk+CdON9oGkaMjOez1DzFN3NJFuSlC lgm@lgm-nixos'' ];
|
|
|
|
}
|