Compare commits

..

No commits in common. "95482003c88c67932b3d5e226b50fb5e15eb89c6" and "b97fb04d644d56d0b432901fe32b42e97058ebc1" have entirely different histories.

2 changed files with 35 additions and 35 deletions

View File

@ -54,8 +54,6 @@
feather # Amazing monero wallet feather # Amazing monero wallet
heroic # Epic games/gog game launcher heroic # Epic games/gog game launcher
protonvpn-gui # Proton vpn gui app protonvpn-gui # Proton vpn gui app
beets # Music tagger
nicotine-plus # Amazing soulseek client
(nerdfonts.override { fonts = [ "CascadiaCode" ]; }) # Best font (nerdfonts.override { fonts = [ "CascadiaCode" ]; }) # Best font
(retroarch.override { cores = with libretro; [ snes9x ]; }) (retroarch.override { cores = with libretro; [ snes9x ]; })

View File

@ -2,13 +2,14 @@
{ {
# Imports # Imports
imports = [ imports =
./hardware-configuration.nix [
./modules/wifi-dongle.nix ./hardware-configuration.nix
./modules/disable-hibernation.nix ./modules/wifi-dongle.nix
./modules/dns-over-https.nix ./modules/disable-hibernation.nix
./modules/nvidia.nix ./modules/dns-over-https.nix
]; ./modules/nvidia.nix
];
# Bootloader. # Bootloader.
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
@ -67,7 +68,11 @@
enable = true; enable = true;
theme = "catppuccin-sddm-corners"; theme = "catppuccin-sddm-corners";
# Fix keyboard showing up unnecesarilly # Fix keyboard showing up unnecesarilly
settings = { General = { InputMethod = ""; }; }; settings = {
General = {
InputMethod="";
};
};
}; };
# Setup plasma with excluding a couple unnecesarry packages # Setup plasma with excluding a couple unnecesarry packages
@ -140,31 +145,28 @@
ryzenadj ryzenadj
wineWowPackages.staging wineWowPackages.staging
lutris lutris
(catppuccin-kde.override { winDecStyles = [ "classic" "modern" ]; }) (catppuccin-kde.override { winDecStyles = ["classic" "modern"] ;})
catppuccin-sddm-corners catppuccin-sddm-corners
]; ];
# Wireguard settings # Wireguard settings
networking.firewall = { networking.firewall = {
enable = true; # if packets are still dropped, they will show up in dmesg
# allow specific tcp ports logReversePathDrops = true;
allowedTCPPorts = [ 2234 ]; # wireguard trips rpfilter up
# if packets are still dropped, they will show up in dmesg extraCommands = ''
logReversePathDrops = true; ip46tables -t mangle -I nixos-fw-rpfilter -p udp -m udp --sport 51820 -j RETURN
# wireguard trips rpfilter up ip46tables -t mangle -I nixos-fw-rpfilter -p udp -m udp --dport 51820 -j RETURN
extraCommands = '' '';
ip46tables -t mangle -I nixos-fw-rpfilter -p udp -m udp --sport 51820 -j RETURN extraStopCommands = ''
ip46tables -t mangle -I nixos-fw-rpfilter -p udp -m udp --dport 51820 -j RETURN ip46tables -t mangle -D nixos-fw-rpfilter -p udp -m udp --sport 51820 -j RETURN || true
''; ip46tables -t mangle -D nixos-fw-rpfilter -p udp -m udp --dport 51820 -j RETURN || true
extraStopCommands = '' '';
ip46tables -t mangle -D nixos-fw-rpfilter -p udp -m udp --sport 51820 -j RETURN || true
ip46tables -t mangle -D nixos-fw-rpfilter -p udp -m udp --dport 51820 -j RETURN || true
'';
}; };
# Enable fstrim # Enable fstrim
services.fstrim.enable = true; services.fstrim.enable = true;
# Enable ratbagd for mice configuration # Enable ratbagd for mice configuration
services.ratbagd.enable = true; services.ratbagd.enable = true;
@ -188,8 +190,7 @@
users.users.crony = { users.users.crony = {
isNormalUser = true; isNormalUser = true;
description = "Crony"; description = "Crony";
extraGroups = extraGroups = [ "networkmanager" "wheel" "video" "input" "audio" "libvirtd" ];
[ "networkmanager" "wheel" "video" "input" "audio" "libvirtd" ];
shell = pkgs.zsh; shell = pkgs.zsh;
}; };
@ -202,8 +203,8 @@
interpreter = "${pkgs.appimage-run}/bin/appimage-run"; interpreter = "${pkgs.appimage-run}/bin/appimage-run";
recognitionType = "magic"; recognitionType = "magic";
offset = 0; offset = 0;
mask = "\\xff\\xff\\xff\\xff\\x00\\x00\\x00\\x00\\xff\\xff\\xff"; mask = ''\xff\xff\xff\xff\x00\x00\x00\x00\xff\xff\xff'';
magicOrExtension = "\\x7fELF....AI\\x02"; magicOrExtension = ''\x7fELF....AI\x02'';
}; };
# Automatic cleanup and optimization # Automatic cleanup and optimization
@ -220,16 +221,17 @@
description = "Set my ryzen cpu power."; description = "Set my ryzen cpu power.";
serviceConfig = { serviceConfig = {
Type = "oneshot"; Type = "oneshot";
ExecStart = toString (pkgs.writeShellScript "ryzenadj-setup" '' ExecStart = toString (
${pkgs.ryzenadj}/bin/ryzenadj --stapm-limit 35000 --fast-limit 35000 --slow-limit 35000 --slow-time 60 --stapm-time 1000 --tctl-temp 75 --vrmmax-current 65000 pkgs.writeShellScript "ryzenadj-setup" ''
''); ${pkgs.ryzenadj}/bin/ryzenadj --stapm-limit 35000 --fast-limit 35000 --slow-limit 35000 --slow-time 60 --stapm-time 1000 --tctl-temp 75 --vrmmax-current 65000
'');
}; };
wantedBy = [ "default.target" ]; wantedBy = ["default.target"];
}; };
# Esync # Esync
systemd.extraConfig = "DefaultLimitNOFILE=1048576"; systemd.extraConfig = "DefaultLimitNOFILE=1048576";
security.pam.loginLimits = [{ security.pam.loginLimits = [{
domain = "*"; domain = "*";
type = "hard"; type = "hard";