diff options
Diffstat (limited to 'configuration.nix')
| -rw-r--r-- | configuration.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/configuration.nix b/configuration.nix new file mode 100644 index 0000000..8335278 --- /dev/null +++ b/configuration.nix @@ -0,0 +1,33 @@ +{config, lib, pkgs, ...}: { + imports = [ + ./hardware-configuration.nix + ./minecraft.nix + ]; + boot.loader.systemd-boot.enable = true; + boot.loader.efi.canTouchEfiVariables = true; + + networking.networkmanager.enable = true; + + services.fail2ban.enable = true; + + services.openssh = { + enable = true; + settings = { + PasswordAuthentication = false; + PermitRootLogin = "no"; + AllowUsers = [ "kassouni" ]; + KbdInteractiveAuthentication = false; + PubkeyAuthentication = true; + }; + }; + + users.users.kassouni = { + extraGroups = [ "wheel" ]; + isNormalUser = true; + openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGBmhTnNG0ym84RJzbIcDCwGmPFVaFPkSYiUtNQrrnV6" + ]; + }; + + system.stateVersion = "26.05"; +} |
