katzen-cafe/modules/base-stuff.nix

49 lines
1.1 KiB
Nix
Raw Normal View History

2023-04-25 18:36:26 +02:00
{ pkgs, ... }:
{
networking.hostName = "katzen-cafe";
2023-04-27 01:48:20 +02:00
networking.networkmanager.enable = true;
2023-04-26 23:25:04 +02:00
networking.firewall = {
allowedTCPPorts = [ 22 80 443 ];
};
2023-04-25 18:36:26 +02:00
boot.loader.systemd-boot.enable = true;
2023-04-26 23:25:04 +02:00
boot.loader.efi.canTouchEfiVariables = true;
2023-04-25 18:36:26 +02:00
boot.kernelPackages = pkgs.linuxPackages_latest;
2023-04-26 23:25:04 +02:00
boot.kernelParams = [ "console=tty" ];
boot.initrd.kernelModules = [ "virtio_gpu" ];
2023-05-06 03:19:19 +02:00
#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"
#];
#};
2023-04-26 23:25:04 +02:00
services.openssh = {
enable = true;
permitRootLogin = "prohibit-password";
};
environment.systemPackages = with pkgs; [
2023-04-30 14:56:30 +02:00
vim wget neofetch btop
2023-04-26 23:25:04 +02:00
];
2023-04-25 18:36:26 +02:00
fileSystems."/" = {
device = "/dev/sda1";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/sda3";
fsType = "vfat";
};
swapDevices = [ {
2023-04-26 23:25:04 +02:00
device = "/dev/sda2";
2023-04-25 18:36:26 +02:00
} ];
}