Changed graphics stuff.

This commit is contained in:
vorboyvo 2025-05-06 13:43:57 -04:00
parent 5734fa6a8a
commit c689a18efe
2 changed files with 40 additions and 3 deletions

View file

@ -7,6 +7,7 @@
{ {
imports = [ # Include the results of the hardware scan. imports = [ # Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
../../snippets/samba.nix
]; ];
################################################ ################################################
@ -17,9 +18,20 @@
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
boot.kernelPackages = pkgs.linuxPackages_latest; # boot.kernelPackages = pkgs.linuxPackagesFor (pkgs.linux_6_6.override {
# argsOverride = rec {
# src = pkgs.fetchurl {
# url = "mirror://kernel/linux/kernel/v6.x/linux-${version}.tar.xz";
# sha256 = "sha256-2NlUBPje63/2mSwN+FUCUGLp6Bgrym2qJ+8uknXSd0k=";
# };
# version = "6.12.23";
# modDirVersion = "6.12.23";
# };
# });
boot.kernelParams = [ boot.kernelParams = [
"amdgpu.sg_display=0" # "amdgpu.sg_display=0"
# "amdgpu.dcdebugmask=0x10"
]; ];
# Enable flakes. # Enable flakes.
@ -85,6 +97,18 @@
# Enable graphics. # Enable graphics.
hardware.graphics.enable = true; hardware.graphics.enable = true;
# hardware.graphics.package = (
# pkgs.mesa.overrideAttrs rec {
# version = "24.3.4";
# src = pkgs.fetchFromGitLab {
# domain = "gitlab.freedesktop.org";
# owner = "mesa";
# repo = "mesa";
# rev = "mesa-${version}";
# hash = "sha256-1RUHbTgcCxdDrWjqB0EG4Ny/nwdjQHHpyPauiW/yogU=";
# };
# });
# Allow users in group "video" to modify backlight # Allow users in group "video" to modify backlight
# services.udev.extraRules = '' # services.udev.extraRules = ''
@ -95,6 +119,12 @@
# Enable CUPS to print documents. # Enable CUPS to print documents.
services.printing.enable = true; services.printing.enable = true;
# Enable SANE for scanning.
hardware.sane = {
enable = true;
extraBackends = [ pkgs.epkowa ];
};
# Enable udisks (handles storage devices, e.g. usb flash drives) # Enable udisks (handles storage devices, e.g. usb flash drives)
services.udisks2.enable = true; services.udisks2.enable = true;
@ -125,7 +155,7 @@
users.users.alice = { users.users.alice = {
isNormalUser = true; isNormalUser = true;
home = "/home/alice"; home = "/home/alice";
extraGroups = [ "wheel" "networkmanager" "video" ] extraGroups = [ "wheel" "networkmanager" "video" "scanner" "lp" ]
++ [ "adbusers" ]; # Enable 'sudo' for the user. ++ [ "adbusers" ]; # Enable 'sudo' for the user.
initialPassword = "manysuchcases"; initialPassword = "manysuchcases";
shell = pkgs.zsh; shell = pkgs.zsh;

7
snippets/samba.nix Normal file
View file

@ -0,0 +1,7 @@
# for configuration.nix
{ config, lib, pkgs, ... }:
{
services.samba = {
enable = true;
};
}