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

This commit is contained in:
Kopatz
2023-11-27 08:51:18 +01:00
9 changed files with 59 additions and 32 deletions

View File

@@ -97,7 +97,11 @@
./users/kopatz.nix
./modules/graphical/plasma.nix
./modules/graphical/shared.nix
./modules/hardware/nvidia.nix
./modules/hardware/ssd.nix
./modules/hardware/firmware.nix
# use latest kernel
./modules/kernel.nix
./modules/nix/settings.nix
./modules/nix/index.nix
./modules/nix/ld.nix
@@ -107,6 +111,7 @@
./modules/noise-supression.nix
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
./modules/wooting.nix
./modules/wireshark.nix
./modules/tmpfs.nix
./modules/support/ntfs.nix
./systems/pc/configuration.nix

View File

@@ -42,6 +42,10 @@ in
"domain" = "server.local";
"answer" = ip;
}
{
"domain" = "activitytracker.site";
"answer" = ip;
}
{
"domain" = "adguard.local";
"answer" = ip;

View File

@@ -20,7 +20,7 @@ in
programs.kdeconnect.enable = true;
fonts.fontDir.enable = true;
fonts.fonts = with pkgs; [
fonts.packages = with pkgs; [
nerdfonts
];
@@ -79,6 +79,8 @@ in
unstable.libreoffice-fresh
mangohud
screenshot
glxinfo
vulkan-tools
];
environment.sessionVariables = {

View File

@@ -0,0 +1,3 @@
{
services.fwupd.enable = true;
}

View File

@@ -0,0 +1,33 @@
{config, pkgs, ...}:
{
# Enable OpenGL
hardware.opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
};
services.xserver.videoDrivers = ["nvidia"];
hardware.nvidia = {
# Modesetting is required.
modesetting.enable = true;
# Nvidia power management. Experimental, and can cause sleep/suspend to fail.
powerManagement.enable = false;
# Fine-grained power management. Turns off GPU when not in use.
# Experimental and only works on modern Nvidia GPUs (Turing or newer).
powerManagement.finegrained = false;
# Use the NVidia open source kernel module (not to be confused with the
# independent third-party "nouveau" open source driver).
# Support is limited to the Turing and later architectures. Full list of
# supported GPUs is at:
# https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus
# Only available from driver 515.43.04+
# Currently alpha-quality/buggy, so false is currently the recommended setting.
open = false;
# Enable the Nvidia settings menu,
# accessible via `nvidia-settings`.
nvidiaSettings = true;
# Optionally, you may need to select the appropriate driver version for your specific GPU.
package = config.boot.kernelPackages.nvidiaPackages.stable;
};
}

4
modules/kernel.nix Normal file
View File

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

7
register_matrix_user.md Normal file
View File

@@ -0,0 +1,7 @@
$ nix-shell -p matrix-synapse
$ register_new_matrix_user -k your-registration-shared-secret http://localhost:8008
New user localpart: your-username
Password:
Confirm password:
Make admin [no]:
Success!

View File

@@ -14,36 +14,6 @@
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
# Enable OpenGL
hardware.opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
};
services.xserver.videoDrivers = ["nvidia"];
hardware.nvidia = {
# Modesetting is required.
modesetting.enable = true;
# Nvidia power management. Experimental, and can cause sleep/suspend to fail.
powerManagement.enable = false;
# Fine-grained power management. Turns off GPU when not in use.
# Experimental and only works on modern Nvidia GPUs (Turing or newer).
powerManagement.finegrained = false;
# Use the NVidia open source kernel module (not to be confused with the
# independent third-party "nouveau" open source driver).
# Support is limited to the Turing and later architectures. Full list of
# supported GPUs is at:
# https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus
# Only available from driver 515.43.04+
# Currently alpha-quality/buggy, so false is currently the recommended setting.
open = false;
# Enable the Nvidia settings menu,
# accessible via `nvidia-settings`.
nvidiaSettings = true;
# Optionally, you may need to select the appropriate driver version for your specific GPU.
package = config.boot.kernelPackages.nvidiaPackages.stable;
};
networking.hostName = "kop-pc"; # Define your hostname.
# Enable networking

View File

@@ -52,7 +52,6 @@ in
packages = with pkgs; [
(discord.override { withVencord = true; })
librewolf
ungoogled-chromium
brave
];
openssh.authorizedKeys.keys = [