Compare commits
3 commits
892bd5f8e3
...
97c84634ad
| Author | SHA1 | Date | |
|---|---|---|---|
| 97c84634ad | |||
| 5b64992d4d | |||
| 4fc9ee5d66 |
7 changed files with 51 additions and 26 deletions
|
|
@ -15,6 +15,7 @@ in
|
|||
|
||||
programs.emacs = {
|
||||
enable = true;
|
||||
package = pkgs.emacs-pgtk;
|
||||
extraPackages =
|
||||
epkgs: with epkgs; [
|
||||
vterm
|
||||
|
|
|
|||
|
|
@ -163,6 +163,10 @@
|
|||
)
|
||||
)
|
||||
|
||||
(use-package! jj-mode
|
||||
:config
|
||||
(evil-make-overriding-map jj-mode-map 'normal))
|
||||
|
||||
(when ak/at-work?
|
||||
(after! forge
|
||||
(add-to-list 'forge-alist '("gitlab.atlas.de" "gitlab.atlas.de/api/v4" "gitlab.atlas.de" forge-gitlab-repository)))
|
||||
|
|
|
|||
|
|
@ -91,3 +91,4 @@
|
|||
(package! modus-themes)
|
||||
(package! consult-denote)
|
||||
(package! casual-suite)
|
||||
(package! jj-mode :recipe (:host github :repo "bolivier/jj-mode.el"))
|
||||
|
|
|
|||
|
|
@ -9,15 +9,6 @@
|
|||
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 = [
|
||||
# Include the results of the hardware scan.
|
||||
|
|
@ -90,7 +81,6 @@ in
|
|||
wget
|
||||
ripgrep
|
||||
git
|
||||
nvidia-offload
|
||||
pinentry-qt
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,10 @@
|
|||
}:
|
||||
|
||||
{
|
||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||
imports = [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
../../modules/wm/nvidia.nix
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [
|
||||
"xhci_pci"
|
||||
|
|
@ -92,22 +95,22 @@
|
|||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
|
||||
hardware.nvidia = {
|
||||
nvidiaSettings = true;
|
||||
nvidiaPersistenced = true;
|
||||
open = true;
|
||||
# hardware.nvidia = {
|
||||
# nvidiaSettings = true;
|
||||
# nvidiaPersistenced = true;
|
||||
# open = true;
|
||||
|
||||
# modesetting.enable = true;
|
||||
package = config.boot.kernelPackages.nvidiaPackages.beta;
|
||||
# prime = {
|
||||
# offload.enable = true;
|
||||
#
|
||||
# intelBusId = "PCI:1:0:0";
|
||||
# nvidiaBusId = "PCI:1:0:0";
|
||||
# intelBusId = "0@0:2:0";
|
||||
# nvidiaBusId = "1@1:0:0";
|
||||
# };
|
||||
};
|
||||
# # modesetting.enable = true;
|
||||
# # package = config.boot.kernelPackages.nvidiaPackages.beta;
|
||||
# # prime = {
|
||||
# # offload.enable = true;
|
||||
# #
|
||||
# # intelBusId = "PCI:1:0:0";
|
||||
# # nvidiaBusId = "PCI:1:0:0";
|
||||
# # intelBusId = "0@0:2:0";
|
||||
# # nvidiaBusId = "1@1:0:0";
|
||||
# # };
|
||||
# };
|
||||
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
|
|
|
|||
25
modules/wm/nvidia.nix
Normal file
25
modules/wm/nvidia.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
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,6 +6,7 @@
|
|||
}:
|
||||
|
||||
{
|
||||
imports = [ ./nvidia.nix ];
|
||||
# Enable the X11 windowing system.
|
||||
services = {
|
||||
dbus = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue