mirror of
https://git.lgmrszd.xyz/Lgmrszd/nix-cfg.git
synced 2024-11-10 05:48:34 +01:00
37 lines
870 B
Nix
37 lines
870 B
Nix
|
{ 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;
|
||
|
};
|
||
|
|
||
|
programs.mosh.enable = true;
|
||
|
|
||
|
users.users.lgm = {
|
||
|
isNormalUser = true;
|
||
|
description = "lgm";
|
||
|
extraGroups = [ "networkmanager" "wheel" "adbusers" "docker"];
|
||
|
shell = pkgs.fish;
|
||
|
};
|
||
|
|
||
|
system.stateVersion = "23.11";
|
||
|
users.users.root.openssh.authorizedKeys.keys = [''ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOcHiU7AJfci41rk+CdON9oGkaMjOez1DzFN3NJFuSlC lgm@lgm-nixos'' ];
|
||
|
}
|