This commit is contained in:
dusk 2023-01-26 14:41:23 +03:00
parent f53e874482
commit ac9730653a
Signed by: dusk
GPG Key ID: 1D8F8FAF2294D6EA
5 changed files with 15 additions and 4 deletions

View File

@ -1 +0,0 @@
../../../modules/gnome-boxes/default.nix

View File

@ -0,0 +1 @@
../../../modules/libvirtd/default.nix

View File

@ -1,4 +1,4 @@
{pkgs, ...}: { {pkgs, ...}: {
virtualisation.libvirtd.enable = true; imports = [../libvirtd];
environment.systemPackages = [pkgs.gnome.gnome-boxes]; environment.systemPackages = [pkgs.gnome.gnome-boxes];
} }

View File

@ -0,0 +1,7 @@
{config, ...}: {
virtualisation.libvirtd.enable = true;
environment.persistence."${config.system.persistDir}".directories = [
"/var/lib/libvirt"
"/var/lib/machines"
];
}

View File

@ -28,11 +28,17 @@ in {
}; };
environment = { environment = {
persistence.${config.system.persistDir}.directories = l.flatten [ persistence.${config.system.persistDir}.directories = l.flatten [
# because steam will be fucked otherwise
(l.optional nixosConfig.programs.steam.enable "/home/patriot/.local/share/Steam") (l.optional nixosConfig.programs.steam.enable "/home/patriot/.local/share/Steam")
# because cargo doesnt work otherwise
"/home/patriot/.cargo" "/home/patriot/.cargo"
# same thing since i work with cargo and other shit
"/home/patriot/proj" "/home/patriot/proj"
# same thing as steam
"/home/patriot/games" "/home/patriot/games"
# flatpak stuff
"/home/patriot/.var" "/home/patriot/.var"
# libvirt stuff, dont think fuse mount would work here
"/home/patriot/.config/libvirt" "/home/patriot/.config/libvirt"
]; ];
systemPackages = with pkgs; [qt5.qtwayland]; systemPackages = with pkgs; [qt5.qtwayland];
@ -146,13 +152,11 @@ in {
"keyrings" "keyrings"
"lutris" "lutris"
"Terraria" "Terraria"
"gnome-boxes"
"PrismLauncher" "PrismLauncher"
] ]
++ mkPaths ".config" [ ++ mkPaths ".config" [
"lutris" "lutris"
"dconf" "dconf"
"gnome-boxes"
]; ];
files = l.flatten [ files = l.flatten [
".config/wallpaper" ".config/wallpaper"