mirror of
https://forge.katzen.cafe/katzen-cafe/katzen-cafe.git
synced 2024-11-25 07:08:45 +01:00
45 lines
897 B
Nix
45 lines
897 B
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; [ podman ];
|
|
createHome = true;
|
|
};
|
|
|
|
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";
|
|
} ];
|
|
}
|