Surface-Nixos/application-configuration.nix
2024-05-05 18:53:07 -04:00

75 lines
1.5 KiB
Nix

{ lib, pkgs, ... }:
{
users.users.caleb = {
packages = with pkgs;
[
# apps
firefox
ungoogled-chromium
kate
qalculate-qt
keepassxc
libsForQt5.krdc
libreoffice-qt
isoimagewriter
qdirstat
signal-desktop
monero-gui
tor-browser-bundle-bin
yubikey-manager-qt
libsForQt5.kdeconnect-kde
# virtualisation
docker-compose
];
};
# kde connect
networking.firewall = {
enable = true;
allowedTCPPortRanges = [
{ from = 1714; to = 1764; } # KDE Connect
];
allowedUDPPortRanges = [
{ from = 1714; to = 1764; } # KDE Connect
];
};
# install Steam
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
};
# yubikey
services.pcscd.enable = true;
# docker and libvirt
programs.virt-manager.enable = true;
virtualisation = {
docker.enable = true;
# enable libvirt
spiceUSBRedirection.enable = true;
libvirtd = {
enable = true;
qemu = {
package = pkgs.qemu_kvm;
runAsRoot = true;
swtpm.enable = true;
ovmf = {
enable = true;
packages = [
(pkgs.OVMF.override {
secureBoot = true;
tpmSupport = true;
}).fd
];
};
};
};
};
users.users.caleb.extraGroups = [ "libvirtd" "docker" ];
}