From 6318f32e342dafe75f637f618f28726387cb7081 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Sat, 10 Feb 2024 09:59:07 -0600 Subject: sys/hv: enable NixVirt --- flake.nix | 8 +++++++- sys/default.nix | 1 + sys/hv/default.nix | 5 +++++ 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 sys/hv/default.nix diff --git a/flake.nix b/flake.nix index 5518c8d..eee27a3 100644 --- a/flake.nix +++ b/flake.nix @@ -11,10 +11,15 @@ nur.url = "github:nix-community/NUR"; impermanence.url = "github:nix-community/impermanence"; hm-isolation.url = "/home/ale/hm-isolation"; + + nixvirt = { + url = "/home/ale/NixVirt"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; outputs = - { self, nixpkgs, unstable, home-manager, nur, impermanence, hm-isolation, ... }: + { self, nixpkgs, unstable, home-manager, nur, impermanence, hm-isolation, nixvirt, ... }: let system = "x86_64-linux"; @@ -56,6 +61,7 @@ host nixpkgs.nixosModules.notDetected impermanence.nixosModule + nixvirt.nixosModules.default ]; }; in diff --git a/sys/default.nix b/sys/default.nix index bcba7c3..38a9e06 100644 --- a/sys/default.nix +++ b/sys/default.nix @@ -5,6 +5,7 @@ with lib; { ./auth.nix ./boot.nix ./fs + ./hv ./net.nix ./nspawn.nix ./options.nix diff --git a/sys/hv/default.nix b/sys/hv/default.nix new file mode 100644 index 0000000..9c52f42 --- /dev/null +++ b/sys/hv/default.nix @@ -0,0 +1,5 @@ +{ + virtualisation.libvirt = { + enable = true; + }; +} -- cgit v1.2.3