Merge branch 'master' of github.com:Kropatz/dotfiles
This commit is contained in:
@@ -97,7 +97,11 @@
|
|||||||
./users/kopatz.nix
|
./users/kopatz.nix
|
||||||
./modules/graphical/plasma.nix
|
./modules/graphical/plasma.nix
|
||||||
./modules/graphical/shared.nix
|
./modules/graphical/shared.nix
|
||||||
|
./modules/hardware/nvidia.nix
|
||||||
./modules/hardware/ssd.nix
|
./modules/hardware/ssd.nix
|
||||||
|
./modules/hardware/firmware.nix
|
||||||
|
# use latest kernel
|
||||||
|
./modules/kernel.nix
|
||||||
./modules/nix/settings.nix
|
./modules/nix/settings.nix
|
||||||
./modules/nix/index.nix
|
./modules/nix/index.nix
|
||||||
./modules/nix/ld.nix
|
./modules/nix/ld.nix
|
||||||
@@ -107,6 +111,7 @@
|
|||||||
./modules/noise-supression.nix
|
./modules/noise-supression.nix
|
||||||
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
|
({ config, pkgs, ... }: { nixpkgs.overlays = [ overlay-unstable ]; })
|
||||||
./modules/wooting.nix
|
./modules/wooting.nix
|
||||||
|
./modules/wireshark.nix
|
||||||
./modules/tmpfs.nix
|
./modules/tmpfs.nix
|
||||||
./modules/support/ntfs.nix
|
./modules/support/ntfs.nix
|
||||||
./systems/pc/configuration.nix
|
./systems/pc/configuration.nix
|
||||||
|
|||||||
@@ -42,6 +42,10 @@ in
|
|||||||
"domain" = "server.local";
|
"domain" = "server.local";
|
||||||
"answer" = ip;
|
"answer" = ip;
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
"domain" = "activitytracker.site";
|
||||||
|
"answer" = ip;
|
||||||
|
}
|
||||||
{
|
{
|
||||||
"domain" = "adguard.local";
|
"domain" = "adguard.local";
|
||||||
"answer" = ip;
|
"answer" = ip;
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ in
|
|||||||
programs.kdeconnect.enable = true;
|
programs.kdeconnect.enable = true;
|
||||||
|
|
||||||
fonts.fontDir.enable = true;
|
fonts.fontDir.enable = true;
|
||||||
fonts.fonts = with pkgs; [
|
fonts.packages = with pkgs; [
|
||||||
nerdfonts
|
nerdfonts
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -79,6 +79,8 @@ in
|
|||||||
unstable.libreoffice-fresh
|
unstable.libreoffice-fresh
|
||||||
mangohud
|
mangohud
|
||||||
screenshot
|
screenshot
|
||||||
|
glxinfo
|
||||||
|
vulkan-tools
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.sessionVariables = {
|
environment.sessionVariables = {
|
||||||
|
|||||||
3
modules/hardware/firmware.nix
Normal file
3
modules/hardware/firmware.nix
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
services.fwupd.enable = true;
|
||||||
|
}
|
||||||
33
modules/hardware/nvidia.nix
Normal file
33
modules/hardware/nvidia.nix
Normal 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
4
modules/kernel.nix
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{pkgs, ...}:
|
||||||
|
{
|
||||||
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
}
|
||||||
7
register_matrix_user.md
Normal file
7
register_matrix_user.md
Normal 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!
|
||||||
@@ -14,36 +14,6 @@
|
|||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = 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.
|
networking.hostName = "kop-pc"; # Define your hostname.
|
||||||
|
|
||||||
# Enable networking
|
# Enable networking
|
||||||
|
|||||||
@@ -52,7 +52,6 @@ in
|
|||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
(discord.override { withVencord = true; })
|
(discord.override { withVencord = true; })
|
||||||
librewolf
|
librewolf
|
||||||
ungoogled-chromium
|
|
||||||
brave
|
brave
|
||||||
];
|
];
|
||||||
openssh.authorizedKeys.keys = [
|
openssh.authorizedKeys.keys = [
|
||||||
|
|||||||
Reference in New Issue
Block a user