I’m running NixOS with the Cosmic desktop environment, which I understand is experimental in nature. However this is (was) running on both my personal laptop and on my work desktop. I recently tried to adjust my configuration for my laptop because I realized that my GPU might not be configured correctly.
So I adjusted the config file in accordance with the NixOS wiki (adding hardware.graphics.enable = true; and hardware.graphics.enable32Bit=true; etc.) and ran `sudo nixos-rebuild boot --upgrade’
When I restarted my computer I arrived at a black screen with a blinking cursor in the corner. I’m able to boot into a TTY and edit things, but no amount of tinkering, going back, changing channels, has been able to unravel this issue.
Sorry if this is light on details, I can try to add a snippet of my config below:
{ config, pkgs, ... }:
let
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/release-25.11.tar.gz";
in
{
imports =
[ ./hardware-configuration.nix
(import "${home-manager}/nixos")
];
boot.loader.systemd-boot = {
enable = true;
consoleMode = "2";
};
boot.loader.efi.canTouchEfiVariables = true;
# This was the original graphics line before I tried to adjust
boot.initrd.kernelModules = ["amdgpu"];
### all the other setup ####
services.displayManager.cosmic-greeter.enable = true;
services.desktopManager.cosmic.enable = true;
### rest of the config + home manager ###
services.asusd.enable = true;
services.expressvpn.enable = true;
services.seatd.enable = true;
services.tailscale.enable = true;
services.udisks2.enable = true;
system.stateVersion = "25.11";
}
Thank you in advance and please let me know if other info is necessary