Compare commits
8 Commits
8681424692
...
75491e90e7
| Author | SHA1 | Date | |
|---|---|---|---|
| 75491e90e7 | |||
| 819b81d8d2 | |||
| fe4f291ef8 | |||
| da46fc7eca | |||
| 58206b4c80 | |||
| 1e02adf3cf | |||
| 15b75b0010 | |||
| 6d34c7dbd0 |
@@ -40,7 +40,7 @@ in
|
|||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Type=Application
|
Type=Application
|
||||||
Name=Wallpaper Engine
|
Name=Wallpaper Engine
|
||||||
Exec=${pkgs.my-namespace.linux-wallpaperengine}/bin/linux-wallpaperengine --screen-root DP-1 --bg 2935872330 --screen-root DP-2 --bg 2935872330
|
Exec=${pkgs.my-namespace.linux-wallpaperengine}/bin/linux-wallpaperengine --screen-root DP-1 --bg 2935872330 -f 12 --screen-root DP-2 --bg 2935872330 -f 12
|
||||||
X-KDE-autostart-after=panel
|
X-KDE-autostart-after=panel
|
||||||
X-KDE-StartupNotify=false
|
X-KDE-StartupNotify=false
|
||||||
'';
|
'';
|
||||||
|
|||||||
@@ -2,12 +2,12 @@
|
|||||||
let
|
let
|
||||||
inherit (lib) mkEnableOption mkIf;
|
inherit (lib) mkEnableOption mkIf;
|
||||||
cfg = config.my-namespace.home.vesktop-appimage;
|
cfg = config.my-namespace.home.vesktop-appimage;
|
||||||
vesktopVersion = "1.6.1";
|
vesktopVersion = "1.6.4";
|
||||||
|
|
||||||
vesktopAppImage = pkgs.runCommand "vesktop-appimage" { } ''
|
vesktopAppImage = pkgs.runCommand "vesktop-appimage" { } ''
|
||||||
cp ${pkgs.fetchurl {
|
cp ${pkgs.fetchurl {
|
||||||
url = "https://github.com/Vencord/Vesktop/releases/download/v${vesktopVersion}/Vesktop-${vesktopVersion}.AppImage";
|
url = "https://github.com/Vencord/Vesktop/releases/download/v${vesktopVersion}/Vesktop-${vesktopVersion}.AppImage";
|
||||||
sha256 = "sha256-zK098H7iiOEe5y5YhgsUCPYVQQPcsnZw6/6q6Nx7h+w=";
|
sha256 = "sha256-o7A8DBQyutONeLp5rstq9hQko2xxbvYZvGGM8/YOQ8s=";
|
||||||
}} $out
|
}} $out
|
||||||
chmod +x $out
|
chmod +x $out
|
||||||
'';
|
'';
|
||||||
|
|||||||
23
modules/nixos/performance-tuning/default.nix
Normal file
23
modules/nixos/performance-tuning/default.nix
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
{ config, lib, pkgs, namespace, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.${namespace}.performance-tuning;
|
||||||
|
in {
|
||||||
|
options.${namespace}.performance-tuning.enable = lib.mkEnableOption "XFCE desktop environment";
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
boot.kernelParams = [
|
||||||
|
"nvme_core.default_ps_max_latency_us=0"
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.kernel.sysctl = {
|
||||||
|
"vm.swappiness" = 10;
|
||||||
|
"vm.dirty_ratio" = 10;
|
||||||
|
"vm.dirty_background_ratio" = 5;
|
||||||
|
};
|
||||||
|
|
||||||
|
services.pipewire.extraConfig.pipewire."context.properties" = {
|
||||||
|
"default.clock.quantum" = 256;
|
||||||
|
"default.clock.min-quantum" = 128;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -46,6 +46,7 @@ in
|
|||||||
my-namespace.desktop-environment.gnome.enable = true;
|
my-namespace.desktop-environment.gnome.enable = true;
|
||||||
my-namespace.desktop-environment.kde.enable = true;
|
my-namespace.desktop-environment.kde.enable = true;
|
||||||
my-namespace.desktop-environment.cosmic.enable = true;
|
my-namespace.desktop-environment.cosmic.enable = true;
|
||||||
|
my-namespace.performance-tuning.enable = true;
|
||||||
# GNOME-keyring
|
# GNOME-keyring
|
||||||
my-namespace.gnome-keyring.enable = true;
|
my-namespace.gnome-keyring.enable = true;
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
hardware.enableRedistributableFirmware = true;
|
hardware.enableRedistributableFirmware = true;
|
||||||
# boot.kernelPackages = pkgs.linuxKernel.packages.linux_xanmod_latest;
|
# boot.kernelPackages = pkgs.linuxKernel.packages.linux_xanmod_latest;
|
||||||
# boot.kernelPackages = pkgs.linuxPackages;
|
# boot.kernelPackages = pkgs.linuxPackages;
|
||||||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
|
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
|
||||||
boot.kernelModules = [ "kvm-amd" "r8125" "4vl2loopback" ];
|
boot.kernelModules = [ "kvm-amd" "r8125" "4vl2loopback" ];
|
||||||
boot.extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback r8125 ];
|
boot.extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback r8125 ];
|
||||||
@@ -28,11 +28,33 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
fileSystems."/boot" = {
|
fileSystems."/boot" = {
|
||||||
device = "/dev/disk/by-uuid/E846-D998";
|
#device = "/dev/disk/by-uuid/E846-D998";
|
||||||
|
device = "/dev/disk/by-uuid/19BE-8BAA";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = [ "fmask=0077" "dmask=0077" ];
|
options = [ "fmask=0077" "dmask=0077" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Mount ntfs partition
|
||||||
|
fileSystems."/run/media/627C3BDF7C3BAD23" = {
|
||||||
|
device = "/dev/disk/by-uuid/627C3BDF7C3BAD23";
|
||||||
|
fsType = "ntfs-3g";
|
||||||
|
options = [ "rw" "uid=1000"];
|
||||||
|
};
|
||||||
|
|
||||||
|
# Mount ntfs oldfiles drive partition
|
||||||
|
fileSystems."/run/media/oldfiles" = {
|
||||||
|
device = "/dev/disk/by-uuid/E2E26FFFE26FD677";
|
||||||
|
fsType = "ntfs-3g";
|
||||||
|
options = [ "rw" "uid=1000"];
|
||||||
|
};
|
||||||
|
|
||||||
|
# Mount The Vault
|
||||||
|
fileSystems."/run/media/vault" = {
|
||||||
|
device = "/dev/disk/by-uuid/3470646370642DB4";
|
||||||
|
fsType = "ntfs-3g";
|
||||||
|
options = [ "rw" "uid=1000"];
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Try to fix hibernation
|
# Try to fix hibernation
|
||||||
|
|||||||
Reference in New Issue
Block a user