- Restore 'quiet' and 'splash' to kernel parameters to enable Plymouth. - Re-enable graphics and virtio drivers for VM configurations. - Add Interface=Qt5 to SDDM theme metadata for proper loading. - Set default autoLogin.session to hyprland-uwsm to ensure correct session start. - Enable services.xserver for improved display manager compatibility.
159 lines
5.6 KiB
Nix
159 lines
5.6 KiB
Nix
{
|
|
description = "Nomarchy - A NixOS-based distribution with Omarchy flavour";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
|
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
|
|
|
disko = {
|
|
url = "github:nix-community/disko";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
impermanence.url = "github:nix-community/impermanence";
|
|
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager/release-25.11";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
nix-colors.url = "github:misterio77/nix-colors";
|
|
stylix.url = "github:danth/stylix";
|
|
walker.url = "github:abenz1267/walker";
|
|
};
|
|
|
|
outputs = { self, nixpkgs, nixos-hardware, disko, impermanence, home-manager, nix-colors, stylix, walker, ... } @ inputs: {
|
|
# Expose inputs for downstream use
|
|
inherit inputs;
|
|
|
|
nixosModules = {
|
|
system = import ./modules/system;
|
|
home = import ./modules/home;
|
|
};
|
|
|
|
nixosConfigurations = {
|
|
installerIso = nixpkgs.lib.nixosSystem {
|
|
specialArgs = { inherit inputs; };
|
|
modules = [
|
|
{ nixpkgs.hostPlatform = "x86_64-linux"; }
|
|
"${nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-graphical-base.nix"
|
|
./hosts/live-iso.nix
|
|
./modules/system
|
|
home-manager.nixosModules.home-manager
|
|
{
|
|
system.stateVersion = "25.11";
|
|
home-manager.extraSpecialArgs = { inherit inputs; };
|
|
|
|
services.displayManager.autoLogin.enable = true;
|
|
services.displayManager.autoLogin.user = "nixos";
|
|
|
|
home-manager.useGlobalPkgs = false;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.users.nixos = {
|
|
imports = [ ./modules/home ];
|
|
home.username = "nixos";
|
|
home.homeDirectory = "/home/nixos";
|
|
home.stateVersion = "25.11";
|
|
};
|
|
}
|
|
];
|
|
};
|
|
|
|
installerVm = nixpkgs.lib.nixosSystem {
|
|
specialArgs = { inherit inputs; };
|
|
modules = [
|
|
{ nixpkgs.hostPlatform = "x86_64-linux"; }
|
|
./hosts/live-iso.nix
|
|
./modules/system
|
|
home-manager.nixosModules.home-manager
|
|
{
|
|
system.stateVersion = "25.11";
|
|
networking.hostName = "nomarchy-installer";
|
|
home-manager.extraSpecialArgs = { inherit inputs; };
|
|
|
|
services.displayManager.autoLogin.enable = true;
|
|
services.displayManager.autoLogin.user = "nixos";
|
|
|
|
home-manager.useGlobalPkgs = false;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.users.nixos = {
|
|
imports = [ ./modules/home ];
|
|
home.username = "nixos";
|
|
home.homeDirectory = "/home/nixos";
|
|
home.stateVersion = "25.11";
|
|
};
|
|
|
|
# VM specific settings to enable graphical boot
|
|
virtualisation.vmVariant = {
|
|
virtualisation.memorySize = 2048;
|
|
virtualisation.cores = 2;
|
|
virtualisation.graphics = true;
|
|
virtualisation.qemu.options = [ "-vga virtio" ];
|
|
};
|
|
|
|
# Use a dummy hardware config for VM
|
|
fileSystems."/" = { device = "/dev/disk/by-label/nixos"; };
|
|
boot.loader.grub.device = "/dev/vda";
|
|
boot.initrd.availableKernelModules = [ "virtio_pci" "virtio_blk" "virtio_gpu" "virtio_net" "virtio_mmio" ];
|
|
boot.kernelParams = nixpkgs.lib.mkForce [ "video=1280x800" "quiet" "splash" "boot.shell_on_fail" ];
|
|
|
|
# Ensure the user has the right groups for graphical environment
|
|
users.users.nixos = {
|
|
isNormalUser = true;
|
|
extraGroups = [ "wheel" "video" "networkmanager" "render" ];
|
|
initialPassword = "nixos";
|
|
};
|
|
}
|
|
];
|
|
};
|
|
|
|
vm = nixpkgs.lib.nixosSystem {
|
|
specialArgs = { inherit inputs; };
|
|
modules = [
|
|
{ nixpkgs.hostPlatform = "x86_64-linux"; }
|
|
./modules/system
|
|
./modules/system/hardware.nix
|
|
home-manager.nixosModules.home-manager
|
|
{
|
|
system.stateVersion = "25.11";
|
|
networking.hostName = "nomarchy";
|
|
home-manager.extraSpecialArgs = { inherit inputs; };
|
|
# VM specific settings
|
|
virtualisation.vmVariant = {
|
|
virtualisation.memorySize = 2048;
|
|
virtualisation.cores = 2;
|
|
virtualisation.graphics = true;
|
|
virtualisation.qemu.options = [ "-vga virtio" ];
|
|
};
|
|
|
|
# Use a dummy hardware config for VM
|
|
fileSystems."/" = { device = "/dev/disk/by-label/nixos"; };
|
|
boot.loader.grub.device = "/dev/vda";
|
|
boot.initrd.availableKernelModules = [ "virtio_pci" "virtio_blk" "virtio_gpu" "virtio_net" "virtio_mmio" ];
|
|
boot.kernelParams = nixpkgs.lib.mkForce [ "video=1280x800" "quiet" "splash" "boot.shell_on_fail" ];
|
|
|
|
# Setup default user for testing
|
|
users.users.nomarchy = {
|
|
isNormalUser = true;
|
|
extraGroups = [ "wheel" "video" "render" ];
|
|
initialPassword = "nixos";
|
|
};
|
|
|
|
services.displayManager.autoLogin.enable = true;
|
|
services.displayManager.autoLogin.user = "nomarchy";
|
|
|
|
home-manager.useGlobalPkgs = false;
|
|
home-manager.useUserPackages = true;
|
|
home-manager.users.nomarchy = {
|
|
imports = [ ./modules/home ];
|
|
home.username = "nomarchy";
|
|
home.homeDirectory = "/home/nomarchy";
|
|
home.stateVersion = "25.11";
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|