I think my flake needs a complete rewrite

This commit is contained in:
Jimbo 2024-10-12 17:35:52 -04:00
parent 87fbcda3d3
commit 65f90a0bf3
65 changed files with 110 additions and 125 deletions

View file

@ -0,0 +1,20 @@
{ config, ... }:
{
services.mpd = {
enable = true;
user = "jimbo";
group = "users";
musicDirectory = "/home/jimbo/JimboNFS/Music";
playlistDirectory = "/home/jimbo/JimboNFS/Music/Playlists";
extraConfig = ''
audio_output {
type "pipewire"
name "Local Pipewire"
}
'';
};
systemd.services.mpd.environment = {
XDG_RUNTIME_DIR = "/run/user/${toString config.users.users.jimbo.uid}";
};
}

View file

@ -0,0 +1,7 @@
{ ... }:
{
services = {
gvfs.enable = true;
udisks2.enable = true;
};
}

View file

@ -0,0 +1,4 @@
{ ... }:
{
services.globalprotect.enable = true;
}

View file

@ -0,0 +1,8 @@
{ ... }:
{
services.sunshine = {
enable = true;
settings.port = 57989;
autoStart = false;
};
}

View file

@ -0,0 +1,40 @@
{ config, pkgs, ... }:
{
virtualisation = {
libvirtd = {
enable = true;
onBoot = "ignore";
onShutdown = "shutdown";
qemu = {
ovmf = {
enable = true;
packages = [
pkgs.OVMFFull.fd
pkgs.pkgsCross.aarch64-multiplatform.OVMF.fd
];
};
swtpm.enable = true;
};
};
spiceUSBRedirection.enable = true;
};
environment.systemPackages = with pkgs; [
virt-manager
virtiofsd
dnsmasq
spice-vdagent
looking-glass-client
];
# Needed to make NAT work
networking.firewall.trustedInterfaces = [
"virbr0"
"virbr1"
];
# Allow Looking-Glass permissions
systemd.tmpfiles.rules = [
"f /dev/shm/looking-glass 0660 jimbo libvirtd -"
];
}

View file

@ -0,0 +1,4 @@
{ config, lib, ... }:
{
virtualisation.waydroid.enable = true;
}