katzen-cafe/modules/base-stuff.nix
2023-05-06 03:19:19 +02:00

49 lines
1.1 KiB
Nix

{ pkgs, ... }:
{
networking.hostName = "katzen-cafe";
networking.networkmanager.enable = true;
networking.firewall = {
allowedTCPPorts = [ 22 80 443 ];
};
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.kernelParams = [ "console=tty" ];
boot.initrd.kernelModules = [ "virtio_gpu" ];
#users.users.april = {
#isNormalUser = true;
#packages = with pkgs; [ git ];
#createHome = true;
#extraGroups = [ "docker" ];
#openssh.authorizedKeys.keys = [
#"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMxsX+lEWkHZt9NOvn9yYFP0Z++186LY4b97C4mwj/f2 waterdev@galaxycrow.de"
#];
#};
services.openssh = {
enable = true;
permitRootLogin = "prohibit-password";
};
environment.systemPackages = with pkgs; [
vim wget neofetch btop
];
fileSystems."/" = {
device = "/dev/sda1";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/sda3";
fsType = "vfat";
};
swapDevices = [ {
device = "/dev/sda2";
} ];
}