Merge branch 'master' of github.com:Kropatz/dotfiles

This commit is contained in:
Kopatz
2025-03-14 08:50:28 +01:00
31 changed files with 656 additions and 210 deletions

View File

@@ -1,6 +1,5 @@
{pkgs, ...}: {
environment.systemPackages = with pkgs; [
typst
typstwriter
];
}

View File

@@ -6,7 +6,34 @@ in {
};
config = lib.mkIf cfg.enable {
boot.kernelParams = [ "amdgpu.ppfeaturemask=0xffffffff" "split_lock_detect=off" ];
hardware.graphics = {
enable = true;
enable32Bit = true;
package = lib.mkForce pkgs.mesa-git.mesa.drivers;
extraPackages = with pkgs; [ mesa-git.amdvlk ];
};
boot.initrd.kernelModules = [ "amdgpu" ];
services.xserver.videoDrivers = [ "amdgpu" ];
# controller (overclock, undervolt, fan curves)
environment.systemPackages = with pkgs; [ lact nvtopPackages.amd ];
systemd.packages = with pkgs; [ lact ];
systemd.services.lactd.wantedBy = [ "multi-user.target" ];
#system.replaceDependencies.replacements = [
# { oldDependency = pkgs.mesa; newDependency = pkgs.mesa-git.mesa; }
#];
hardware.firmware = with pkgs;
[
(linux-firmware.overrideAttrs (old: {
src = builtins.fetchGit {
url =
"https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git";
rev =
"b4cb02b2dc3330c6e5d69e84a616b1ca5faecf12"; # Uncomment this line to allow for pure builds
};
}))
];
};
}

View File

@@ -89,6 +89,7 @@ in {
libvdpau-va-gl
libva
libva-utils
pkgs.nvidia_oc
(gwe.override { nvidia_x11 = config.hardware.nvidia.package; })
];

View File

@@ -0,0 +1,9 @@
{ config, pkgs, ... }: {
boot = {
extraModulePackages = with config.boot.kernelPackages; [ zenpower ];
kernelModules = [ "zenpower" ];
blacklistedKernelModules = [ "k10temp" ];
};
environment.systemPackages = with pkgs; [ zenmonitor ];
}

View File

@@ -1,4 +1,5 @@
{pkgs, ...}:
{
boot.kernelPackages = pkgs.linuxPackages_latest;
#boot.kernelPackages = pkgs.linuxPackages_latest;
boot.kernelPackages = pkgs.linuxPackages_testing;
}

View File

@@ -8,7 +8,7 @@
lib.mkForce [ ]; # Normally ["network-online.target"]
};
# mash spacebar to still be able to select a different boot option
boot.loader.timeout = 0;
boot.loader.timeout = 1;
virtualisation.docker.enableOnBoot = false;
}

View File

@@ -1,3 +1,5 @@
{pkgs, lib, ...}:
{
networking.networkmanager.enable = true;
networking.networkmanager.plugins = lib.mkForce [ pkgs.networkmanager-openvpn ];
}

View File

@@ -32,6 +32,7 @@ in {
dates = "weekly";
options = "--delete-older-than 30d";
};
channel.enable = false;
extraOptions = ''
min-free = ${toString (100 * 1024 * 1024)}
max-free = ${toString (1024 * 1024 * 1024)}

View File

@@ -113,6 +113,7 @@ in {
${mangal} inline -S AsuraScans --query "the_max_level_hero" --manga first --download
${mangal} inline -S Manganato --query "Parallel_City" --manga first --download
${mangal} inline -S Manganato --query "Existence" --manga first --download
${mangal} inline -S Mangapill --query "Call_of_the_Night" --manga first --download
'';
serviceConfig = {
PrivateTmp = true;