summaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
authorcaley <u65487754@gmail.com>2026-06-26 09:22:58 +0200
committerGitHub <noreply@github.com>2026-06-26 09:22:58 +0200
commitf9274cd1e4a92d71c70a9c4dde6e1a20e70a640f (patch)
treee3254360b4a3b54ef85a02c0ba3b6dc9cea17c1a /nixos
parentdd94bfe48fa99ce2b7f190813d31a9819388ba6b (diff)
Update configuration.nix
Diffstat (limited to 'nixos')
-rw-r--r--nixos/hosts/bin/configuration.nix23
1 files changed, 22 insertions, 1 deletions
diff --git a/nixos/hosts/bin/configuration.nix b/nixos/hosts/bin/configuration.nix
index 90fd754..0679b2a 100644
--- a/nixos/hosts/bin/configuration.nix
+++ b/nixos/hosts/bin/configuration.nix
@@ -14,6 +14,11 @@
options = "--delete-older-than 7d";
};
+ boot.loader.grub = {
+ enable = true;
+ device = "/dev/sda";
+ };
+
zramSwap = {
enable = true;
memoryPercent = 25;
@@ -23,6 +28,17 @@
networking.networkmanager.enable = true;
networking.firewall.allowedTCPPorts = [ 8080 5657 25565 ];
+ networking.useDHCP = false;
+ networking.interfaces.ens18.ipv4.addresses = [{
+ address = "5.231.118.254";
+ prefixLength = 24;
+ }];
+ networking.defaultGateway = {
+ address = "5.231.118.1";
+ interface = "ens18";
+ };
+ networking.nameservers = [ "1.1.1.1" "8.8.8.8" ];
+
time.timeZone = "Europe/Berlin";
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
@@ -46,6 +62,9 @@
description = "cat";
extraGroups = [ "networkmanager" "wheel" ];
shell = pkgs.fish;
+ openssh.authorizedKeys.keys = [
+ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILJq3Lw3QReo6e9S1jbt1AywvaLKfgTY/GagPsfReP+t cat@box"
+ ];
};
environment.systemPackages = with pkgs; [
@@ -57,7 +76,9 @@
services.openssh = {
enable = true;
settings = {
- PasswordAuthentication = true;
+ PasswordAuthentication = false;
+ KbdInteractiveAuthentication = false;
+ PermitRootLogin = "no";
};
};