This commit is contained in:
KaitoTLex 2024-11-20 21:33:29 -08:00
commit 55c076d7fe
4 changed files with 83 additions and 29 deletions

View file

@ -11,32 +11,25 @@
# Include the results of the hardware scan. # Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
]; ];
hardware.graphics.enable32Bit = true;
hardware.pulseaudio.support32Bit = true;
boot.initrd.luks.fido2Support = true; boot.initrd.luks.fido2Support = true;
boot.kernelParams = [ "mem_sleep_default=deep" ];
# Bootloader. # Bootloader.
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;
virtualisation.waydroid.enable = true; virtualisation.waydroid.enable = true;
networking.hostName = "shiroko"; # Define your hostname. networking.hostName = "shiroko"; # Define your hostname.
#security yargen
services.fprintd.enable = true; # security.pam.yubico.enable = true;
services.desktopManager.plasma6.enable = true; services.fprintd = {
services.actkbd = { #tod.enable = true;
enable = true; enable = true;
bindings = [
{
keys = [ 232 ];
events = [ "key" ];
command = "${pkgs.brightnessctl}/bin/brightnessctl set 1000";
}
{
keys = [ 233 ];
events = [ "key" ];
command = "${pkgs.brightnessctl}/bin/brightnessctl set 1000-";
}
];
}; };
security.pam.services.root.fprintAuth = true;
#If i become a twat
services.desktopManager.plasma6.enable = false;
# Configure network proxy if necessary # Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/"; # networking.proxy.default = "http://user:password@proxy:port/";
@ -45,6 +38,38 @@
# Enable networking # Enable networking
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
#Here's my Attempt of Sleep XD
systemd.sleep.extraConfig = ''
AllowSuspend=yes
AllowHibernation=yes
AllowHybridSleep=yes
AllowSuspendThenHibernate=yes
'';
#Conclusion: Intel Hates Me
#laptop Optmization
powerManagement.enable = true;
services.tlp = {
enable = true;
settings = {
CPU_SCALING_GOVERNOR_ON_AC = "performance";
CPU_SCALING_GOVERNOR_ON_BAT = "balance_performance";
CPU_ENERGY_PERF_POLICY_ON_BAT = "balance_performance";
CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
CPU_MIN_PERF_ON_AC = 0;
CPU_MAX_PERF_ON_AC = 100;
CPU_MIN_PERF_ON_BAT = 0;
CPU_MAX_PERF_ON_BAT = 20;
#Optional helps save long term battery health
START_CHARGE_THRESH_BAT0 = 20; # 40 and bellow it starts to charge
STOP_CHARGE_THRESH_BAT0 = 95; # 80 and above it stops charging
};
};
# Set your time zone. # Set your time zone.
time.timeZone = "America/Los_Angeles"; time.timeZone = "America/Los_Angeles";

View file

@ -8,26 +8,26 @@
[ (modulesPath + "/installer/scan/not-detected.nix") [ (modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "rtsx_pci_sdmmc" ]; boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = fileSystems."/" =
{ device = "/dev/disk/by-uuid/0b6e9715-5ce6-49d1-98f9-ea0a5d4237f9"; { device = "/dev/disk/by-uuid/082ff607-f7a2-4909-95b3-c5c698f26de5";
fsType = "ext4"; fsType = "ext4";
}; };
boot.initrd.luks.devices."luks-fef5cb12-a610-4701-9215-717caf0b27ad".device = "/dev/disk/by-uuid/fef5cb12-a610-4701-9215-717caf0b27ad"; boot.initrd.luks.devices."luks-292cc751-7ae1-4a4b-8835-502760a9bf9f".device = "/dev/disk/by-uuid/292cc751-7ae1-4a4b-8835-502760a9bf9f";
fileSystems."/boot" = fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/A91B-FD09"; { device = "/dev/disk/by-uuid/524F-2940";
fsType = "vfat"; fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ]; options = [ "fmask=0022" "dmask=0022" ];
}; };
swapDevices = swapDevices =
[ { device = "/dev/disk/by-uuid/7beb9844-e0c3-44dc-998f-ee42e36b9543"; } [ { device = "/dev/disk/by-uuid/94f5084c-2995-4a62-a492-9071c122bc08"; }
]; ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # Enables DHCP on each ethernet and wireless interface. In case of scripted networking

View file

@ -4,7 +4,7 @@
config = rec { config = rec {
terminal = "kitty"; terminal = "kitty";
modifier = "Mod4"; modifier = "Mod4";
menu = "rofi -show drun"; menu = "rofi -show combi";
bars = [ bars = [
{ {
command = "waybar"; command = "waybar";
@ -62,9 +62,20 @@
]; ];
}; };
xwayland = true; xwayland = true;
#extraConfigs = { extraConfig = ''
# keybindings = "bindsym XF86MonBrightnessDown exec brightnessctl -d amdgpu_bl2 set 10%- \n bindsym XF86AudioRaiseVolume exec pamixer -i 5
# bindsym XF86MonBrightnessUp exec brightnessctl -d amdgpu_bl2 set 10%+"; bindsym XF86AudioLowerVolume exec pamixer -d 5
#}; bindsym XF86AudioMute exec pamixer -t
bindsym XF86MonBrightnessUp exec brightnessctl s 5%+
bindsym XF86MonBrightnessDown exec brightnessctl s 5%-
bindsym XF86AudioMicMute exec spotify
input "type:touchpad" {
natural_scroll enabled
tap enabled # enables click-on-tap
tap_button_map lrm # tap with 1 finger = left click, 2 fingers = right click, 3 fingers = middle click
dwt enabled # disable (touchpad) while typing
}
'';
}; };
} }

View file

@ -22,6 +22,16 @@
home.packages = with pkgs; [ home.packages = with pkgs; [
# here is some command line tools I use frequently # here is some command line tools I use frequently
# feel free to add your own or remove some of them # feel free to add your own or remove some of them
xdg-desktop-portal-gtk
pavucontrol
ryujinx
unzip
sixpair
kdePackages.kio-fuse
kdePackages.kio-extras
kdePackages.qtsvg
kdePackages.qtwayland
yubikey-personalization
typst-live typst-live
typst typst
tmux tmux
@ -33,6 +43,7 @@
wineWowPackages.waylandFull wineWowPackages.waylandFull
wget wget
vscode vscode
melonDS
gparted gparted
gnumake gnumake
chromium chromium
@ -48,6 +59,12 @@
nwg-displays nwg-displays
dolphin dolphin
xfce.thunar xfce.thunar
<<<<<<< HEAD
=======
tailwindcss
nodejs_22
>>>>>>> refs/remotes/origin/main
clang clang
macchanger macchanger
ani-cli ani-cli
@ -56,6 +73,7 @@
tinymist tinymist
steam steam
blueman
notion-app-enhanced notion-app-enhanced
# archives # archives