reorganized and made the config cleaner as well as switched the qt theme style

This commit is contained in:
Tyler Kelley 2024-05-29 16:35:31 -05:00
parent 776c8063f3
commit 010c58f6a1
2 changed files with 73 additions and 72 deletions

View File

@ -41,7 +41,7 @@ with lib;
env = QT_QPA_PLATFORM=wayland;xcb
env = QT_WAYLAND_DISABLE_WINDOWDECORATION, 1
env = QT_AUTO_SCREEN_SCALE_FACTOR, 1
env = SDL_VIDEODRIVER, wayland
env = SDL_VIDEODRIVER, x11
env = MOZ_ENABLE_WAYLAND, 1
exec-once = dbus-update-activation-environment --systemd --all
exec-once = systemctl --user import-environment QT_QPA_PLATFORMTHEME WAYLAND_DISPLAY XDG_CURRENT_DESKTOP

View File

@ -2,7 +2,6 @@
config,
pkgs,
host,
inputs,
username,
options,
...
@ -20,19 +19,26 @@
../../modules/local-hardware-clock.nix
];
boot = {
# Kernel
boot.kernelPackages = pkgs.linuxPackages;
# boot.kernelPackages = pkgs.linuxPackages_zen;
# Bootloader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.kernel.sysctl = {
kernelPackages = pkgs.linuxPackages_zen;
# This is for OBS Virtual Cam Support
kernelModules = [ "v4l2loopback" ];
extraModulePackages = [ config.boot.kernelPackages.v4l2loopback ];
# Needed For Some Steam Games
kernel.sysctl = {
"vm.max_map_count" = 2147483642;
};
boot.tmp.useTmpfs = false;
boot.tmp.tmpfsSize = "30%";
boot.binfmt.registrations.appimage = {
# Bootloader.
loader.systemd-boot.enable = true;
loader.efi.canTouchEfiVariables = true;
# Make /tmp a tmpfs
tmp = {
useTmpfs = false;
tmpfsSize = "30%";
};
# Appimage Support
binfmt.registrations.appimage = {
wrapInterpreterInShell = false;
interpreter = "${pkgs.appimage-run}/bin/appimage-run";
recognitionType = "magic";
@ -40,14 +46,12 @@
mask = ''\xff\xff\xff\xff\x00\x00\x00\x00\xff\xff\xff'';
magicOrExtension = ''\x7fELF....AI\x02'';
};
# This is for OBS Virtual Cam Support - v4l2loopback setup
boot.kernelModules = [ "v4l2loopback" ];
boot.extraModulePackages = [ config.boot.kernelPackages.v4l2loopback ];
};
# Styling Options
stylix.image = ../../config/wallpapers/zaney-wallpaper.jpg;
# stylix.base16Scheme = {
stylix = {
image = ../../config/wallpapers/zaney-wallpaper.jpg;
# base16Scheme = {
# base00 = "232136";
# base01 = "2a273f";
# base02 = "393552";
@ -65,11 +69,11 @@
# base0E = "f6c177";
# base0F = "56526e";
# };
stylix.polarity = "dark";
stylix.cursor.package = pkgs.bibata-cursors;
stylix.cursor.name = "Bibata-Modern-Ice";
stylix.cursor.size = 24;
stylix.fonts = {
polarity = "dark";
cursor.package = pkgs.bibata-cursors;
cursor.name = "Bibata-Modern-Ice";
cursor.size = 24;
fonts = {
monospace = {
package = pkgs.nerdfonts.override { fonts = [ "JetBrainsMono" ]; };
name = "JetBrainsMono Nerd Font Mono";
@ -82,24 +86,21 @@
package = pkgs.dejavu_fonts;
name = "DejaVu Serif";
};
};
stylix.fonts.sizes = {
sizes = {
applications = 12;
terminal = 15;
desktop = 11;
popups = 12;
};
};
};
qt = {
enable = true;
style = "adwaita-dark";
style = "gtk2";
platformTheme = "gtk2";
};
# Configure network proxy if necessary
# networking.proxy.default = "http://user:password@proxy:port/";
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Enable networking
networking.networkmanager.enable = true;
networking.hostName = host;
@ -221,7 +222,7 @@
fonts = {
packages = with pkgs; [
(nerdfonts.override { fonts = [ "JetBrainsMono" "CaskaydiaMono" ]; })
(nerdfonts.override { fonts = [ "JetBrainsMono" ]; })
noto-fonts-emoji
noto-fonts-cjk
font-awesome