adding libvirt stuff

This commit is contained in:
Chris Cochrun 2022-09-26 17:03:47 -05:00
parent b464cd3499
commit 1e63034c0b
4 changed files with 77 additions and 13 deletions

View file

@ -262,6 +262,20 @@ Now lets turn on docker and podman. I create a lot of containers for my job.
#+begin_src nix
virtualisation.podman.enable = true;
virtualisation.docker.enable = true;
virtualisation.libvirtd = {
enable = true;
qemu = {
runAsRoot = false;
ovmf = {
enable = true;
packages = [
pkgs.OVMFFull.fd
pkgs.pkgsCross.aarch64-multiplatform.OVMF.fd
];
};
swtpm.enable = true;
};
};
#+end_src
*** Packages
@ -305,6 +319,8 @@ procs
pandoc
samba
blesh
# OVMFFull
quickemu
#+end_src
These are just for general graphical machines. Laptops, and desktops.
@ -366,6 +382,8 @@ scribus
# appflowy
darktable
qutebrowser
virt-manager
virt-viewer
# firefox
kate
kdialog
@ -404,8 +422,6 @@ pfetch
macchina
gimp
powertop
quickemu
OVMFFull
element-desktop-wayland
scrcpy
python
@ -497,7 +513,13 @@ Emacs service
#+begin_src nix
services.emacs = {
enable = true;
package = with pkgs; ((emacsPackagesFor emacsNativeComp).emacsWithPackages (epkgs: [ epkgs.vterm epkgs.magit epkgs.pdf-tools pkgs.mu ]));
package = with pkgs; ((emacsPackagesFor emacsNativeComp).emacsWithPackages [
(epkgs: with epkgs.melpaPackages; [
epkgs.vterm
epkgs.magit
epkgs.pdf-tools
])
pkgs.mu ]);
};
#+end_src
@ -1740,6 +1762,7 @@ I also use home-manager for managing dotfiles. This means that everything is con
suspend = "systemctl suspend";
sysuse = "systemctl --user";
myip = "curl icanhazip.com";
nixs = "nix search nixpkgs";
ytd = "yt-dlp -o ~/Videos/%(title)s.%(ext)s";
};
@ -1751,9 +1774,10 @@ I also use home-manager for managing dotfiles. This means that everything is con
programs.bash = {
enable = true;
bashrcExtra = ''
# source $(blesh-share)
# ble-face auto_complete="fg=238"
eval "$(starship init bash)"
# export ENV_EFI_CODE_SECURE=/run/libvirt/nix-ovmf/OVMF_CODE.fd ENV_EFI_VARS_SECURE=/run/libvirt/nix-ovmf/OVMF_VARS.fd
source $(blesh-share)
ble-face auto_complete="fg=238"
# eval "$(starship init bash)"
'';
};