Fix wrong variable name issue in gpu passthru module, configure console/tty colours
This commit is contained in:
parent
c77fde7906
commit
c4e3ab2e4a
28
global.nix
28
global.nix
|
|
@ -31,8 +31,34 @@
|
||||||
variant = "";
|
variant = "";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Console (TTY) Configuration
|
||||||
|
console = {
|
||||||
# Configure console keymap
|
# Configure console keymap
|
||||||
console.keyMap = "uk";
|
keyMap = "uk";
|
||||||
|
# Configure console colors (Gruvbox Light) - More colourschemes at https://github.com/kolunmi/ttyscheme/blob/main/ttyscheme
|
||||||
|
colors = [
|
||||||
|
"fbf1c7"
|
||||||
|
"cc241d"
|
||||||
|
"98971a"
|
||||||
|
"d79921"
|
||||||
|
"458588"
|
||||||
|
"b16286"
|
||||||
|
"689d6a"
|
||||||
|
"7c6f64"
|
||||||
|
"928374"
|
||||||
|
"9d0006"
|
||||||
|
"79740e"
|
||||||
|
"b57614"
|
||||||
|
"076678"
|
||||||
|
"8f3f71"
|
||||||
|
"427b58"
|
||||||
|
"3c3836"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
fonts.packages = with pkgs; [
|
||||||
|
nerdfonts
|
||||||
|
];
|
||||||
|
|
||||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||||
users.users.cspark = {
|
users.users.cspark = {
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ in
|
||||||
qemuscript_source = builtins.readFile ./resources/libvirt/hooks/qemu;
|
qemuscript_source = builtins.readFile ./resources/libvirt/hooks/qemu;
|
||||||
startscript_source = builtins.readFile ./resources/libvirt/hooks/qemu.d/vm/prepare/begin/start.sh;
|
startscript_source = builtins.readFile ./resources/libvirt/hooks/qemu.d/vm/prepare/begin/start.sh;
|
||||||
revertscript_source = builtins.readFile ./resources/libvirt/hooks/qemu.d/vm/release/end/revert.sh;
|
revertscript_source = builtins.readFile ./resources/libvirt/hooks/qemu.d/vm/release/end/revert.sh;
|
||||||
qemuscript = pkgs.writeShellScript "cspark-single-gpu-passthru-qemu" revertscript_source;
|
qemuscript = pkgs.writeShellScript "cspark-single-gpu-passthru-qemu" qemuscript_source;
|
||||||
startscript = pkgs.writeShellScript "cspark-single-gpu-passthru-start.sh" startscript_source;
|
startscript = pkgs.writeShellScript "cspark-single-gpu-passthru-start.sh" startscript_source;
|
||||||
revertscript = pkgs.writeShellScript "cspark-single-gpu-passthru-revert.sh" revertscript_source;
|
revertscript = pkgs.writeShellScript "cspark-single-gpu-passthru-revert.sh" revertscript_source;
|
||||||
gpuvbios = ./resources/libvirt/vgabios/gpuvbios.rom;
|
gpuvbios = ./resources/libvirt/vgabios/gpuvbios.rom;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue