Compare commits
No commits in common. "97c84634ad7a2c9ba0840db019a8d068bd0887b4" and "892bd5f8e326199396be4ae5ea1c59385a4721f3" have entirely different histories.
97c84634ad
...
892bd5f8e3
7 changed files with 26 additions and 51 deletions
|
|
@ -15,7 +15,6 @@ in
|
||||||
|
|
||||||
programs.emacs = {
|
programs.emacs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.emacs-pgtk;
|
|
||||||
extraPackages =
|
extraPackages =
|
||||||
epkgs: with epkgs; [
|
epkgs: with epkgs; [
|
||||||
vterm
|
vterm
|
||||||
|
|
|
||||||
|
|
@ -163,10 +163,6 @@
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
(use-package! jj-mode
|
|
||||||
:config
|
|
||||||
(evil-make-overriding-map jj-mode-map 'normal))
|
|
||||||
|
|
||||||
(when ak/at-work?
|
(when ak/at-work?
|
||||||
(after! forge
|
(after! forge
|
||||||
(add-to-list 'forge-alist '("gitlab.atlas.de" "gitlab.atlas.de/api/v4" "gitlab.atlas.de" forge-gitlab-repository)))
|
(add-to-list 'forge-alist '("gitlab.atlas.de" "gitlab.atlas.de/api/v4" "gitlab.atlas.de" forge-gitlab-repository)))
|
||||||
|
|
|
||||||
|
|
@ -91,4 +91,3 @@
|
||||||
(package! modus-themes)
|
(package! modus-themes)
|
||||||
(package! consult-denote)
|
(package! consult-denote)
|
||||||
(package! casual-suite)
|
(package! casual-suite)
|
||||||
(package! jj-mode :recipe (:host github :repo "bolivier/jj-mode.el"))
|
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,15 @@
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
let
|
||||||
|
nvidia-offload = pkgs.writeShellScriptBin "nvidia-offload" ''
|
||||||
|
export __NV_PRIME_RENDER_OFFLOAD=1
|
||||||
|
export __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0
|
||||||
|
export __GLX_VENDOR_LIBRARY_NAME=nvidia
|
||||||
|
export __VK_LAYER_NV_optimus=NVIDIA_only
|
||||||
|
exec "$@"
|
||||||
|
'';
|
||||||
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
# Include the results of the hardware scan.
|
# Include the results of the hardware scan.
|
||||||
|
|
@ -81,6 +90,7 @@
|
||||||
wget
|
wget
|
||||||
ripgrep
|
ripgrep
|
||||||
git
|
git
|
||||||
|
nvidia-offload
|
||||||
pinentry-qt
|
pinentry-qt
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,10 +10,7 @@
|
||||||
}:
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||||
(modulesPath + "/installer/scan/not-detected.nix")
|
|
||||||
../../modules/wm/nvidia.nix
|
|
||||||
];
|
|
||||||
|
|
||||||
boot.initrd.availableKernelModules = [
|
boot.initrd.availableKernelModules = [
|
||||||
"xhci_pci"
|
"xhci_pci"
|
||||||
|
|
@ -95,22 +92,22 @@
|
||||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
|
||||||
# hardware.nvidia = {
|
hardware.nvidia = {
|
||||||
# nvidiaSettings = true;
|
nvidiaSettings = true;
|
||||||
# nvidiaPersistenced = true;
|
nvidiaPersistenced = true;
|
||||||
# open = true;
|
open = true;
|
||||||
|
|
||||||
# # modesetting.enable = true;
|
# modesetting.enable = true;
|
||||||
# # package = config.boot.kernelPackages.nvidiaPackages.beta;
|
package = config.boot.kernelPackages.nvidiaPackages.beta;
|
||||||
# # prime = {
|
# prime = {
|
||||||
# # offload.enable = true;
|
# offload.enable = true;
|
||||||
# #
|
#
|
||||||
# # intelBusId = "PCI:1:0:0";
|
# intelBusId = "PCI:1:0:0";
|
||||||
# # nvidiaBusId = "PCI:1:0:0";
|
# nvidiaBusId = "PCI:1:0:0";
|
||||||
# # intelBusId = "0@0:2:0";
|
# intelBusId = "0@0:2:0";
|
||||||
# # nvidiaBusId = "1@1:0:0";
|
# nvidiaBusId = "1@1:0:0";
|
||||||
# # };
|
|
||||||
# };
|
# };
|
||||||
|
};
|
||||||
|
|
||||||
hardware.graphics = {
|
hardware.graphics = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
|
|
@ -1,25 +0,0 @@
|
||||||
{
|
|
||||||
config,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
{
|
|
||||||
hardware.graphics.enable = true;
|
|
||||||
|
|
||||||
services.xserver.videoDrivers = [ "nvidia" ];
|
|
||||||
|
|
||||||
hardware.nvidia = {
|
|
||||||
modesetting.enable = true;
|
|
||||||
nvidiaPersistenced = true;
|
|
||||||
powerManagement.enable = true;
|
|
||||||
powerManagement.finegrained = false;
|
|
||||||
open = false;
|
|
||||||
nvidiaSettings = true;
|
|
||||||
package = config.boot.kernelPackages.nvidiaPackages.latest;
|
|
||||||
};
|
|
||||||
|
|
||||||
boot.kernelParams = [
|
|
||||||
"nvidia-drm.fbdev=1"
|
|
||||||
"nvidia-drm.modeset=1"
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
@ -6,7 +6,6 @@
|
||||||
}:
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [ ./nvidia.nix ];
|
|
||||||
# Enable the X11 windowing system.
|
# Enable the X11 windowing system.
|
||||||
services = {
|
services = {
|
||||||
dbus = {
|
dbus = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue