fix(vm): fix Plymouth, SDDM, and autologin for VM testing
- Add virtio_gpu to initrd.kernelModules for early graphics support in VMs. - Add 'render' group to VM users to ensure GPU acceleration. - Move autologin defaults to sddm.nix to ensure they are consistently applied. - Ensure SDDM theme has better session detection for uwsm.
This commit is contained in:
@@ -93,11 +93,12 @@
|
|||||||
# Use a dummy hardware config for VM
|
# Use a dummy hardware config for VM
|
||||||
fileSystems."/" = { device = "/dev/disk/by-label/nixos"; };
|
fileSystems."/" = { device = "/dev/disk/by-label/nixos"; };
|
||||||
boot.loader.grub.device = "/dev/vda";
|
boot.loader.grub.device = "/dev/vda";
|
||||||
|
boot.initrd.kernelModules = [ "virtio_gpu" ];
|
||||||
|
|
||||||
# Ensure the user has the right groups for graphical environment
|
# Ensure the user has the right groups for graphical environment
|
||||||
users.users.nixos = {
|
users.users.nixos = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [ "wheel" "video" "networkmanager" ];
|
extraGroups = [ "wheel" "video" "networkmanager" "render" ];
|
||||||
initialPassword = "nixos";
|
initialPassword = "nixos";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -125,11 +126,12 @@
|
|||||||
# Use a dummy hardware config for VM
|
# Use a dummy hardware config for VM
|
||||||
fileSystems."/" = { device = "/dev/disk/by-label/nixos"; };
|
fileSystems."/" = { device = "/dev/disk/by-label/nixos"; };
|
||||||
boot.loader.grub.device = "/dev/vda";
|
boot.loader.grub.device = "/dev/vda";
|
||||||
|
boot.initrd.kernelModules = [ "virtio_gpu" ];
|
||||||
|
|
||||||
# Setup default user for testing
|
# Setup default user for testing
|
||||||
users.users.nomarchy = {
|
users.users.nomarchy = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [ "wheel" "video" ];
|
extraGroups = [ "wheel" "video" "render" ];
|
||||||
initialPassword = "nixos";
|
initialPassword = "nixos";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -18,6 +18,11 @@ in
|
|||||||
theme = "nomarchy";
|
theme = "nomarchy";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.displayManager.autoLogin = {
|
||||||
|
enable = lib.mkDefault true;
|
||||||
|
user = lib.mkDefault "nomarchy";
|
||||||
|
};
|
||||||
|
|
||||||
environment.systemPackages = [ nomarchy-sddm-theme ];
|
environment.systemPackages = [ nomarchy-sddm-theme ];
|
||||||
|
|
||||||
# Enable Hyprland system-level dependencies
|
# Enable Hyprland system-level dependencies
|
||||||
|
|||||||
Reference in New Issue
Block a user