katzen-cafe/modules/base-stuff.nix

45 lines
897 B
Nix
Raw Normal View History

2023-04-25 16:36:26 +00:00
{ pkgs, ... }:
{
networking.hostName = "katzen-cafe";
2023-04-26 23:48:20 +00:00
networking.networkmanager.enable = true;
2023-04-26 21:25:04 +00:00
networking.firewall = {
allowedTCPPorts = [ 22 80 443 ];
};
2023-04-25 16:36:26 +00:00
boot.loader.systemd-boot.enable = true;
2023-04-26 21:25:04 +00:00
boot.loader.efi.canTouchEfiVariables = true;
2023-04-25 16:36:26 +00:00
boot.kernelPackages = pkgs.linuxPackages_latest;
2023-04-26 21:25:04 +00:00
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; [
2023-04-30 12:56:30 +00:00
vim wget neofetch btop
2023-04-26 21:25:04 +00:00
];
2023-04-25 16:36:26 +00:00
fileSystems."/" = {
device = "/dev/sda1";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/sda3";
fsType = "vfat";
};
swapDevices = [ {
2023-04-26 21:25:04 +00:00
device = "/dev/sda2";
2023-04-25 16:36:26 +00:00
} ];
}