Compare commits

...

2 commits

Author SHA1 Message Date
11667722d7
cyclone: Do not suspend at login screen 2024-09-11 18:56:12 -05:00
2331f56376
cyclone: Enable libvirtd 2024-09-11 18:55:23 -05:00

View file

@ -36,7 +36,11 @@
# GNOME!
desktopManager.gnome.enable = true;
displayManager.gdm.enable = true;
displayManager.gdm = {
# At the login screen, don't automatically fall asleep.
autoSuspend = false;
enable = true;
};
# Nvidia driver support.
videoDrivers = [ "nvidia" ];
@ -82,10 +86,29 @@
cpu.amd.updateMicrocode = true;
};
# As recommended in https://nixos.wiki/wiki/Libvirt#Setup
virtualisation.libvirtd = {
enable = true;
qemu = {
package = pkgs.qemu_kvm;
runAsRoot = true;
swtpm.enable = true;
ovmf = {
enable = true;
packages = [
(pkgs.OVMF.override {
secureBoot = true;
tpmSupport = true;
}).fd
];
};
};
};
# Hey, world!
users.users.spotlight = {
isNormalUser = true;
extraGroups = [ "wheel" ];
extraGroups = [ "libvirtd" "wheel" ];
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPQQO+c8ygVzRt55Z9qekqItSjYiw381cFPOqX+vGAGT MacBook Air 2020 macOS"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ/gyX9b80oml6z3UGOxVMJk/NS8R5w9NEITJcKb0MnU MacBook Air 2020 NixOS"