From 2c2cca6baec863041588ab8283b7601d493ef3c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Fri, 16 Aug 2024 12:55:43 +0300 Subject: [PATCH] vm: add autorandr, use newer kernel --- hosts/vm/configuration.nix | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/hosts/vm/configuration.nix b/hosts/vm/configuration.nix index 90e3271..2da40e5 100644 --- a/hosts/vm/configuration.nix +++ b/hosts/vm/configuration.nix @@ -1,4 +1,9 @@ -{ self, modulesPath, ... }: +{ + self, + pkgs, + modulesPath, + ... +}: { imports = [ "${modulesPath}/profiles/all-hardware.nix" @@ -6,7 +11,7 @@ ]; mj = { - stateVersion = "23.11"; + stateVersion = "24.05"; timeZone = "UTC"; username = "nixos"; @@ -17,11 +22,14 @@ }; }; - boot.loader.systemd-boot.enable = true; - boot.supportedFilesystems = [ - "zfs" - "btrfs" - ]; + boot = { + loader.systemd-boot.enable = true; + kernelPackages = pkgs.zfs.latestCompatibleLinuxPackages; + supportedFilesystems = [ + "zfs" + "btrfs" + ]; + }; isoImage = { isoName = "toolshed-${self.lastModifiedDate}.iso"; @@ -36,6 +44,7 @@ services = { getty.autologinUser = "nixos"; xserver.autorun = false; + autorandr.enable = true; }; security.pam.services.lightdm.text = ''