dotfiles/hosts/Common/default.nix

83 lines
2.2 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-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;
programs.zsh.enable = true;
2024-06-10 12:14:37 +02:00
2024-06-13 11:53:29 +02:00
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
networking.firewall.enable = false;
2024-06-10 12:14:37 +02:00
2024-06-13 11:53:29 +02:00
security.rtkit.enable = true;
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
];
services.udev.packages = [ pkgs.yubikey-personalization ];
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
}