dotfiles/hosts/Common/default.nix

80 lines
2.1 KiB
Nix
Raw Normal View History

2024-06-10 12:14:37 +02:00
{ pkgs, ... }:
{
2024-06-13 11:53:29 +02:00
security.polkit.enable = true;
2024-06-13 13:21:06 +02:00
security.rtkit.enable = true;
programs.zsh.enable = true;
networking.firewall.enable = false;
2024-06-10 12:14:37 +02:00
2024-06-13 11:53:29 +02:00
boot.loader.systemd-boot.memtest86.enable = true;
boot.loader.systemd-boot.netbootxyz.enable = true;
boot.loader.timeout = 1;
boot.loader.efi.canTouchEfiVariables = true;
2024-06-10 12:14:37 +02:00
2024-06-13 11:53:29 +02:00
services.thermald.enable = true;
services.pcscd.enable = true;
services.fwupd.enable = true;
services.gvfs.enable = true;
services.fstrim.enable = true;
services.openssh = {
enable = true;
settings = {
PermitRootLogin = "no";
PasswordAuthentication = false;
2024-06-10 12:14:37 +02:00
};
2024-06-13 11:53:29 +02:00
};
2024-06-10 12:14:37 +02:00
2024-06-13 11:53:29 +02:00
environment.systemPackages = with pkgs; [
wget
curl
git
lm_sensors
wireguard-tools
2024-06-10 12:14:37 +02:00
2024-06-13 11:53:29 +02:00
# Podman
dive
podman-tui
docker-compose
];
2024-06-10 12:14:37 +02:00
2024-06-13 11:53:29 +02:00
virtualisation.containers.enable = true;
virtualisation = {
podman = {
enable = true;
dockerCompat = true;
defaultNetwork.settings.dns_enabled = true;
2024-06-10 12:14:37 +02:00
};
2024-06-13 11:53:29 +02:00
};
2024-06-10 12:14:37 +02:00
2024-06-13 11:53:29 +02:00
services.resolved = {
enable = true;
fallbackDns = [ "1.1.1.1" "1.0.0.1" ];
};
2024-06-10 12:14:37 +02:00
2024-06-13 11:53:29 +02:00
fileSystems."/home/server" = {
device = "10.1:/home/server";
fsType = "nfs";
options = [ "x-systemd.automount" "x-systemd.mount-timeout=1" "_netdev" "noauto" "timeo=1" ];
};
fileSystems."/home/user/Workspace" = {
device = "10.1:/home/server/Workspace";
fsType = "nfs";
options = [ "x-systemd.automount" "x-systemd.mount-timeout=1" "_netdev" "noauto" "timeo=1" ];
};
fileSystems."/home/user/Documents" = {
device = "10.1:/home/server/Storage/Thomas/Documents";
fsType = "nfs";
options = [ "x-systemd.automount" "x-systemd.mount-timeout=1" "_netdev" "noauto" "timeo=1" ];
};
fileSystems."/home/user/Pictures" = {
device = "10.1:/home/server/Storage/Thomas/Pictures";
fsType = "nfs";
options = [ "x-systemd.automount" "x-systemd.mount-timeout=1" "_netdev" "noauto" "timeo=1" ];
};
fileSystems."/home/user/Videos" = {
device = "10.1:/home/server/Storage/Thomas/Videos";
fsType = "nfs";
options = [ "x-systemd.automount" "x-systemd.mount-timeout=1" "_netdev" "noauto" "timeo=1" ];
};
2024-06-10 12:14:37 +02:00
}