blob: 7dee03df3cc64b1646293dc13f58dc1fe8f663c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
{ config, pkgs, ... }:
{
imports = [
./hardware-configuration.nix
];
boot.tmp.cleanOnBoot = true;
zramSwap.enable = true;
networking.hostName = "vps";
networking.domain = "";
security.sudo = {
enable = true;
wheelNeedsPassword = false;
};
users.users.administrator = {
isNormalUser = true;
password = "admin";
extraGroups = [ "wheel" ];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPvlkqlvY4+0o7UIGnFnnRw0HeBq5v7wYJ3kY3teXxxl vps"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINL+r0l2i07pl9V9iiGqw5e2f/QAcrMhuraA25HavdNT github-deploy"
];
};
environment.systemPackages = with pkgs; [
git
gnutar
gzip
];
services.openssh = {
enable = true;
ports = [ 8693 ];
settings = {
PasswordAuthentication = false;
X11Forwarding = false;
PermitRootLogin = "yes";
};
};
services.nginx = {
enable = true;
virtualHosts."schererleander.de" = {
root = "/var/www/site";
};
};
networking.firewall.allowedTCPPorts = [ 80 443 8693 ];
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nixpkgs.config.allowUnfree = true;
system.stateVersion = "25.05";
}
|