add libvirt
This commit is contained in:
parent
356ec43b26
commit
394f71cfb6
7 changed files with 48 additions and 31 deletions
|
|
@ -7,6 +7,7 @@
|
||||||
./packages.nix
|
./packages.nix
|
||||||
./programs.nix
|
./programs.nix
|
||||||
./environment.nix
|
./environment.nix
|
||||||
|
./virtualization.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
{ inputs, pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
programs = {
|
programs = {
|
||||||
neovim = {
|
neovim = {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
{ config, pkgs, ... }:
|
{ ... }:
|
||||||
let
|
{
|
||||||
in {
|
|
||||||
programs = {
|
programs = {
|
||||||
nushell = {
|
nushell = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
9
home/user/virtualization.nix
Normal file
9
home/user/virtualization.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
dconf.settings = {
|
||||||
|
"org/virt-manager/virt-manager/connections" = {
|
||||||
|
autoconnect = [ "qemu:///system" ];
|
||||||
|
uris = [ "qemu:///system" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -24,6 +24,6 @@
|
||||||
./wireguard.nix
|
./wireguard.nix
|
||||||
./dn-ca.nix
|
./dn-ca.nix
|
||||||
./environment.nix
|
./environment.nix
|
||||||
./virtualisation.nix
|
./virtualization.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
virtualisation = {
|
|
||||||
docker.enable = true;
|
|
||||||
|
|
||||||
# Run container as systemd service
|
|
||||||
oci-containers = {
|
|
||||||
backend = "docker";
|
|
||||||
containers = {};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
22
system/modules/virtualization.nix
Normal file
22
system/modules/virtualization.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.virt-manager.enable = true;
|
||||||
|
users.groups.libvirtd.members = [ "danny" ];
|
||||||
|
|
||||||
|
virtualisation = {
|
||||||
|
docker.enable = true;
|
||||||
|
|
||||||
|
# Run container as systemd service
|
||||||
|
oci-containers = {
|
||||||
|
backend = "docker";
|
||||||
|
containers = { };
|
||||||
|
};
|
||||||
|
|
||||||
|
libvirtd = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
spiceUSBRedirection.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue