Update Zed configuration for nix LSP and formatter.

This commit is contained in:
2025-11-23 16:34:22 +01:00
parent 2be712393f
commit 900b565405
114 changed files with 2311 additions and 2408 deletions

View File

@@ -4,18 +4,16 @@
config,
...
}:
with lib;
let
with lib; let
cfg = config.drivers.amdgpu;
in
{
in {
options.drivers.amdgpu = {
enable = mkEnableOption "Enable AMD Drivers";
};
config = mkIf cfg.enable {
systemd.tmpfiles.rules = [ "L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}" ];
services.xserver.videoDrivers = [ "amdgpu" ];
environment.systemPackages = with pkgs; [ rocmPackages.rocm-smi ];
systemd.tmpfiles.rules = ["L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"];
services.xserver.videoDrivers = ["amdgpu"];
environment.systemPackages = with pkgs; [rocmPackages.rocm-smi];
};
}

View File

@@ -1,7 +1,4 @@
{
...
}:
{
{...}: {
imports = [
./amd-drivers.nix
./intel-drivers.nix

View File

@@ -4,11 +4,9 @@
config,
...
}:
with lib;
let
with lib; let
cfg = config.drivers.intel;
in
{
in {
options.drivers.intel = {
enable = mkEnableOption "Enable Intel Graphics Drivers";
};

View File

@@ -4,14 +4,12 @@
config,
...
}:
with lib;
let
with lib; let
cfg = config.local.hardware-clock;
in
{
in {
options.local.hardware-clock = {
enable = mkEnableOption "Change Hardware Clock To Local Time";
};
config = mkIf cfg.enable { time.hardwareClockInLocalTime = true; };
config = mkIf cfg.enable {time.hardwareClockInLocalTime = true;};
}

View File

@@ -4,18 +4,16 @@
pkgs,
...
}:
with lib;
let
with lib; let
cfg = config.drivers.nvidia;
in
{
in {
options.drivers.nvidia = {
enable = mkEnableOption "Enable Nvidia Drivers";
};
config = mkIf cfg.enable {
services.xserver.videoDrivers = [ "nvidia" ];
environment.systemPackages = with pkgs; [ nvidia-docker ];
services.xserver.videoDrivers = ["nvidia"];
environment.systemPackages = with pkgs; [nvidia-docker];
hardware = {
nvidia-container-toolkit.enable = true;
nvidia = {
@@ -43,7 +41,6 @@ in
};
};
}
# Making nvidia docker toolkit work:
#
# sudo nvidia-ctk cdi generate --output=/etc/cdi/nvidia.yaml
@@ -59,3 +56,4 @@ in
# EOF
#
# docker run --device nvidia.com/gpu=all

View File

@@ -4,11 +4,9 @@
config,
...
}:
with lib;
let
with lib; let
cfg = config.drivers.nvidia-prime;
in
{
in {
options.drivers.nvidia-prime = {
enable = mkEnableOption "Enable Nvidia Prime Hybrid GPU Offload";
intelBusID = mkOption {

View File

@@ -4,11 +4,9 @@
config,
...
}:
with lib;
let
with lib; let
cfg = config.vm.guest-services;
in
{
in {
options.vm.guest-services = {
enable = mkEnableOption "Enable Virtual Machine Guest Services";
};