vm: add autorandr, use newer kernel

This commit is contained in:
Motiejus Jakštys 2024-08-16 12:55:43 +03:00
parent 039bd308c9
commit 2c2cca6bae
1 changed files with 16 additions and 7 deletions

View File

@ -1,4 +1,9 @@
{ self, modulesPath, ... }: {
self,
pkgs,
modulesPath,
...
}:
{ {
imports = [ imports = [
"${modulesPath}/profiles/all-hardware.nix" "${modulesPath}/profiles/all-hardware.nix"
@ -6,7 +11,7 @@
]; ];
mj = { mj = {
stateVersion = "23.11"; stateVersion = "24.05";
timeZone = "UTC"; timeZone = "UTC";
username = "nixos"; username = "nixos";
@ -17,11 +22,14 @@
}; };
}; };
boot.loader.systemd-boot.enable = true; boot = {
boot.supportedFilesystems = [ loader.systemd-boot.enable = true;
kernelPackages = pkgs.zfs.latestCompatibleLinuxPackages;
supportedFilesystems = [
"zfs" "zfs"
"btrfs" "btrfs"
]; ];
};
isoImage = { isoImage = {
isoName = "toolshed-${self.lastModifiedDate}.iso"; isoName = "toolshed-${self.lastModifiedDate}.iso";
@ -36,6 +44,7 @@
services = { services = {
getty.autologinUser = "nixos"; getty.autologinUser = "nixos";
xserver.autorun = false; xserver.autorun = false;
autorandr.enable = true;
}; };
security.pam.services.lightdm.text = '' security.pam.services.lightdm.text = ''