mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2026-04-15 05:39:11 +02:00
feat[server]: add home proxy
This commit is contained in:
parent
75891c3103
commit
c1c7431891
84 changed files with 2961 additions and 1601 deletions
|
|
@ -1,13 +1,21 @@
|
|||
{ config, lib, ... }:
|
||||
{
|
||||
# imports = [
|
||||
# inputs.microvm.nixosModules.host
|
||||
# ];
|
||||
|
||||
config = lib.mkIf (config.guests != { }) {
|
||||
|
||||
microvm = {
|
||||
hypervisor = lib.mkDefault "qemu";
|
||||
};
|
||||
systemd.tmpfiles.settings."15-microvms" = builtins.listToAttrs (
|
||||
map
|
||||
(path: {
|
||||
name = "${lib.optionalString config.swarselsystems.isImpermanence "/persist"}/microvms/${path}";
|
||||
value = {
|
||||
d = {
|
||||
group = "kvm";
|
||||
user = "microvm";
|
||||
mode = "0750";
|
||||
};
|
||||
};
|
||||
})
|
||||
(builtins.attrNames config.guests)
|
||||
);
|
||||
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue