mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
Fixing up VM setup
This commit is contained in:
parent
608100b359
commit
e1e8c16bcd
3 changed files with 210 additions and 2 deletions
|
|
@ -1,7 +1,8 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
|
||||
with lib;
|
||||
{ system.stateVersion = "23.11";
|
||||
{
|
||||
system.stateVersion = "23.11";
|
||||
|
||||
users.users = {
|
||||
${config.user.name} = {
|
||||
|
|
@ -123,4 +124,19 @@ with lib;
|
|||
};
|
||||
};
|
||||
};
|
||||
} // attrsets.optionalAttrs (
|
||||
config.virtualisation ? libvirt && config.virtualisation.libvirt.enable ||
|
||||
config.virtualisation.libvirtd.enable)
|
||||
{
|
||||
systemd.tmpfiles.rules = [
|
||||
"d /home/VMs 0755 root root"
|
||||
];
|
||||
|
||||
fileSystems = {
|
||||
"/var/lib/libvirt/images" = {
|
||||
device = "/home/VMs";
|
||||
fstype = "none";
|
||||
options = [ "bind" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue