Surface-Nixos/application-configuration.nix

80 lines
1.6 KiB
Nix
Raw Normal View History

2024-01-29 23:07:13 -05:00
{ lib, pkgs, ... }:
{
users.users.caleb = {
packages = with pkgs;
[
2024-03-26 09:40:09 -04:00
# apps
2024-01-29 23:07:13 -05:00
firefox
ungoogled-chromium
2024-01-29 23:07:13 -05:00
kate
qalculate-qt
keepassxc
libsForQt5.krdc
libreoffice-qt
isoimagewriter
qdirstat
signal-desktop
monero-gui
tor-browser-bundle-bin
yubikey-manager-qt
2024-03-26 09:40:09 -04:00
libsForQt5.kdeconnect-kde
obsidian
2024-01-29 23:07:13 -05:00
# virtualisation
podman-compose
2024-01-29 23:07:13 -05:00
];
};
2024-03-26 09:40:09 -04:00
# kde connect
2024-03-29 10:44:09 -04:00
networking.firewall = {
2024-03-26 09:40:09 -04:00
enable = true;
2024-03-29 10:44:09 -04:00
allowedTCPPortRanges = [
2024-03-26 09:40:09 -04:00
{ from = 1714; to = 1764; } # KDE Connect
2024-03-29 10:44:09 -04:00
];
allowedUDPPortRanges = [
2024-03-26 09:40:09 -04:00
{ from = 1714; to = 1764; } # KDE Connect
2024-03-29 10:44:09 -04:00
];
2024-03-26 09:40:09 -04:00
};
2024-01-29 23:07:13 -05:00
# install Steam
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
};
# yubikey
services.pcscd.enable = true;
# podman and libvirt
programs.virt-manager.enable = true;
virtualisation = {
podman = {
enable = true;
dockerCompat = true;
defaultNetwork.settings.dns_enabled = true;
};
# enable libvirt
spiceUSBRedirection.enable = true;
libvirtd = {
enable = true;
qemu = {
package = pkgs.qemu_kvm;
runAsRoot = true;
swtpm.enable = true;
ovmf = {
enable = true;
2024-03-29 10:44:09 -04:00
packages = [
(pkgs.OVMF.override {
secureBoot = true;
tpmSupport = true;
}).fd
];
};
};
};
};
users.users.caleb.extraGroups = [ "libvirtd" ];
2024-01-29 23:07:13 -05:00
}