adding libvirt stuff
This commit is contained in:
parent
b464cd3499
commit
1e63034c0b
36
README.org
36
README.org
|
@ -262,6 +262,20 @@ Now lets turn on docker and podman. I create a lot of containers for my job.
|
||||||
#+begin_src nix
|
#+begin_src nix
|
||||||
virtualisation.podman.enable = true;
|
virtualisation.podman.enable = true;
|
||||||
virtualisation.docker.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
|
#+end_src
|
||||||
|
|
||||||
*** Packages
|
*** Packages
|
||||||
|
@ -305,6 +319,8 @@ procs
|
||||||
pandoc
|
pandoc
|
||||||
samba
|
samba
|
||||||
blesh
|
blesh
|
||||||
|
# OVMFFull
|
||||||
|
quickemu
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
These are just for general graphical machines. Laptops, and desktops.
|
These are just for general graphical machines. Laptops, and desktops.
|
||||||
|
@ -366,6 +382,8 @@ scribus
|
||||||
# appflowy
|
# appflowy
|
||||||
darktable
|
darktable
|
||||||
qutebrowser
|
qutebrowser
|
||||||
|
virt-manager
|
||||||
|
virt-viewer
|
||||||
# firefox
|
# firefox
|
||||||
kate
|
kate
|
||||||
kdialog
|
kdialog
|
||||||
|
@ -404,8 +422,6 @@ pfetch
|
||||||
macchina
|
macchina
|
||||||
gimp
|
gimp
|
||||||
powertop
|
powertop
|
||||||
quickemu
|
|
||||||
OVMFFull
|
|
||||||
element-desktop-wayland
|
element-desktop-wayland
|
||||||
scrcpy
|
scrcpy
|
||||||
python
|
python
|
||||||
|
@ -497,7 +513,13 @@ Emacs service
|
||||||
#+begin_src nix
|
#+begin_src nix
|
||||||
services.emacs = {
|
services.emacs = {
|
||||||
enable = true;
|
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
|
#+end_src
|
||||||
|
|
||||||
|
@ -1740,6 +1762,7 @@ I also use home-manager for managing dotfiles. This means that everything is con
|
||||||
suspend = "systemctl suspend";
|
suspend = "systemctl suspend";
|
||||||
sysuse = "systemctl --user";
|
sysuse = "systemctl --user";
|
||||||
myip = "curl icanhazip.com";
|
myip = "curl icanhazip.com";
|
||||||
|
nixs = "nix search nixpkgs";
|
||||||
ytd = "yt-dlp -o ~/Videos/%(title)s.%(ext)s";
|
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 = {
|
programs.bash = {
|
||||||
enable = true;
|
enable = true;
|
||||||
bashrcExtra = ''
|
bashrcExtra = ''
|
||||||
# source $(blesh-share)
|
# export ENV_EFI_CODE_SECURE=/run/libvirt/nix-ovmf/OVMF_CODE.fd ENV_EFI_VARS_SECURE=/run/libvirt/nix-ovmf/OVMF_VARS.fd
|
||||||
# ble-face auto_complete="fg=238"
|
source $(blesh-share)
|
||||||
eval "$(starship init bash)"
|
ble-face auto_complete="fg=238"
|
||||||
|
# eval "$(starship init bash)"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -40,6 +40,20 @@ imports =
|
||||||
|
|
||||||
virtualisation.podman.enable = true;
|
virtualisation.podman.enable = true;
|
||||||
virtualisation.docker.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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# Select internationalisation properties.
|
# Select internationalisation properties.
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
@ -200,6 +214,8 @@ imports =
|
||||||
pandoc
|
pandoc
|
||||||
samba
|
samba
|
||||||
blesh
|
blesh
|
||||||
|
# OVMFFull
|
||||||
|
quickemu
|
||||||
discover
|
discover
|
||||||
# kde-rounded-corners
|
# kde-rounded-corners
|
||||||
lightly-qt
|
lightly-qt
|
||||||
|
@ -256,6 +272,8 @@ imports =
|
||||||
# appflowy
|
# appflowy
|
||||||
darktable
|
darktable
|
||||||
qutebrowser
|
qutebrowser
|
||||||
|
virt-manager
|
||||||
|
virt-viewer
|
||||||
# firefox
|
# firefox
|
||||||
kate
|
kate
|
||||||
kdialog
|
kdialog
|
||||||
|
@ -294,8 +312,6 @@ imports =
|
||||||
macchina
|
macchina
|
||||||
gimp
|
gimp
|
||||||
powertop
|
powertop
|
||||||
quickemu
|
|
||||||
OVMFFull
|
|
||||||
element-desktop-wayland
|
element-desktop-wayland
|
||||||
scrcpy
|
scrcpy
|
||||||
python
|
python
|
||||||
|
@ -377,7 +393,13 @@ imports =
|
||||||
|
|
||||||
services.emacs = {
|
services.emacs = {
|
||||||
enable = true;
|
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 ]);
|
||||||
};
|
};
|
||||||
services.samba-wsdd.enable = true;
|
services.samba-wsdd.enable = true;
|
||||||
services.samba = {
|
services.samba = {
|
||||||
|
|
|
@ -40,6 +40,20 @@
|
||||||
|
|
||||||
virtualisation.podman.enable = true;
|
virtualisation.podman.enable = true;
|
||||||
virtualisation.docker.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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# Select internationalisation properties.
|
# Select internationalisation properties.
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
@ -213,6 +227,8 @@
|
||||||
pandoc
|
pandoc
|
||||||
samba
|
samba
|
||||||
blesh
|
blesh
|
||||||
|
# OVMFFull
|
||||||
|
quickemu
|
||||||
discover
|
discover
|
||||||
# kde-rounded-corners
|
# kde-rounded-corners
|
||||||
lightly-qt
|
lightly-qt
|
||||||
|
@ -269,6 +285,8 @@
|
||||||
# appflowy
|
# appflowy
|
||||||
darktable
|
darktable
|
||||||
qutebrowser
|
qutebrowser
|
||||||
|
virt-manager
|
||||||
|
virt-viewer
|
||||||
# firefox
|
# firefox
|
||||||
kate
|
kate
|
||||||
kdialog
|
kdialog
|
||||||
|
@ -307,8 +325,6 @@
|
||||||
macchina
|
macchina
|
||||||
gimp
|
gimp
|
||||||
powertop
|
powertop
|
||||||
quickemu
|
|
||||||
OVMFFull
|
|
||||||
element-desktop-wayland
|
element-desktop-wayland
|
||||||
scrcpy
|
scrcpy
|
||||||
python
|
python
|
||||||
|
|
|
@ -425,6 +425,7 @@
|
||||||
suspend = "systemctl suspend";
|
suspend = "systemctl suspend";
|
||||||
sysuse = "systemctl --user";
|
sysuse = "systemctl --user";
|
||||||
myip = "curl icanhazip.com";
|
myip = "curl icanhazip.com";
|
||||||
|
nixs = "nix search nixpkgs";
|
||||||
ytd = "yt-dlp -o ~/Videos/%(title)s.%(ext)s";
|
ytd = "yt-dlp -o ~/Videos/%(title)s.%(ext)s";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -436,8 +437,9 @@
|
||||||
programs.bash = {
|
programs.bash = {
|
||||||
enable = true;
|
enable = true;
|
||||||
bashrcExtra = ''
|
bashrcExtra = ''
|
||||||
# source $(blesh-share)
|
# export ENV_EFI_CODE_SECURE=/run/libvirt/nix-ovmf/OVMF_CODE.fd ENV_EFI_VARS_SECURE=/run/libvirt/nix-ovmf/OVMF_VARS.fd
|
||||||
# ble-face auto_complete="fg=238"
|
source $(blesh-share)
|
||||||
|
ble-face auto_complete="fg=238"
|
||||||
eval "$(starship init bash)"
|
eval "$(starship init bash)"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue