hosts: add FredOS-Kayla — plain KDE Plasma desktop for kayla
This commit is contained in:
parent
ccf6badd78
commit
0e1c540cca
5 changed files with 104 additions and 1 deletions
52
hosts/hardware/FredOS-Kayla.nix
Normal file
52
hosts/hardware/FredOS-Kayla.nix
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
#./hosts/hardware/FredOS-Kayla.nix
|
||||
#
|
||||
# Same hardware as FredOS-Gaming apart from the drives (and the monitor, which
|
||||
# Plasma's own display settings handle — nothing to pin here). Kept off the
|
||||
# CachyOS kernel/attic substituter the gaming box uses: stock
|
||||
# linuxPackages_latest from common.nix, one less input to babysit.
|
||||
#
|
||||
# The fileSystems below are PLACEHOLDERS — this evaluates but will not boot.
|
||||
# Run `nixos-generate-config --show-hardware-config` on the machine and paste
|
||||
# the real UUIDs over them, then push.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
{
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ "amdgpu" ];
|
||||
boot.kernelModules = [ "kvm-amd" "ntsync" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
boot.kernelParams = [ "amdgpu.ppfeaturemask=0xffffffff" "amdgpu.freesync_video=1" ];
|
||||
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-label/nixos"; # TODO: replace with the real UUID
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" = {
|
||||
device = "/dev/disk/by-label/BOOT"; # TODO: replace with the real UUID
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
hardware.enableRedistributableFirmware = true;
|
||||
networking.hostName = "FredOS-Kayla";
|
||||
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
enable32Bit = true;
|
||||
};
|
||||
services.xserver.videoDrivers = [ "amdgpu" ];
|
||||
|
||||
system.stateVersion = "25.11";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue