some fixes

This commit is contained in:
Zoty 2026-06-14 11:24:05 -03:00
parent bf35832817
commit 1adcfe0a12
Signed by: Zoty
SSH key fingerprint: SHA256:WsGEGivgl37t3Mth6uugXMOgMCTR7QolIepNbC+j/tA
7 changed files with 240 additions and 24 deletions

View file

@ -1,17 +1,28 @@
# Hardware-specific configuration for the notebook.
# fileSystems and swap are declared by disko (notebook-disko.nix).
# Regenerate this file with: nixos-generate-config --no-filesystems --show-hardware-config
{ config, lib, modulesPath, ... }:
# Notebook hardware configuration.
#
# This file is REPLACED automatically during installation.
# The installer runs:
# nixos-generate-config --no-filesystems --show-hardware-config
# and writes the output here before calling nixos-install.
#
# After installation, commit the generated file:
# git add modules/_hardware/notebook-hardware.nix
# git commit -m "add notebook hardware config"
#
# To regenerate on the installed system:
# nixos-generate-config --no-filesystems --show-hardware-config \
# > ~/repos/nixos/modules/_hardware/notebook-hardware.nix
{ lib, modulesPath, ... }:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usb_storage" "ums_realtek" "sd_mod" "sr_mod" ];
boot.kernelModules = [ "kvm-intel" ];
# Filled in by the installer. These are placeholder values that allow
# the flake to evaluate before the real hardware is detected.
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
boot.kernelModules = [];
boot.extraModulePackages = [];
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}

View file

@ -9,7 +9,7 @@
];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.initrd.kernelModules = [ "amdgpu" ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];

View file

@ -72,6 +72,7 @@ in {
den.aspects.prismlauncher
den.aspects.androidcam
den.aspects.winvm
den.aspects.leisure
];
nixos = {
system.stateVersion = "25.11";

24
modules/leisure.nix Normal file
View file

@ -0,0 +1,24 @@
{ den, inputs, ... }: {
den.aspects.leisure.nixos = { pkgs, ... }:
let
pkgs-unstable = import inputs.nixpkgs-unstable {
system = pkgs.system;
config.allowUnfree = true;
};
in {
environment.systemPackages = with pkgs-unstable; [
# Streaming
stremio-linux-shell
# Torrenting
qbittorrent
# Media playback
mpv
yt-dlp
# Social
discord
];
};
}

View file

@ -14,10 +14,11 @@
services.thermald.enable = true;
boot = {
initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "sd_mod" ];
initrd.kernelModules = [ "dm-crypt" ];
kernelModules = [ "kvm-intel" ];
initrd.compressor = "zstd";
# Hardware-specific modules (kvm-intel/kvm-amd, nvme, etc.) come from
# modules/_hardware/notebook-hardware.nix, generated during installation
# by nixos-generate-config --no-filesystems --show-hardware-config.
initrd.kernelModules = [ "dm-crypt" ];
initrd.compressor = "zstd";
loader = {
grub = {