removed ags

This commit is contained in:
vali 2024-08-09 16:09:22 +02:00
commit cd5e91c316
14 changed files with 24 additions and 350 deletions

View file

@ -1,10 +1,8 @@
_: {
imports = [
./vesktop.nix
./gtk.nix
./foot.nix
./mpv.nix
./qt.nix
./zathura.nix
./spicetify.nix
./kitty.nix

View file

@ -1,57 +0,0 @@
{
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.modules.theming.gtk;
inherit (config.modules.other.system) username;
in {
options.modules.theming.gtk = {
enable = mkEnableOption "gtk theming";
name = mkOption {
description = "gtk theme name";
type = types.str;
};
package = mkOption {
description = "gtk theme package";
type = types.package;
};
# iconTheme = mkOption {
# description = "gtk icon theme";
# type = with types; submodule {
# options = {
# name = mkOption {
# description = "gtk icon theme name";
# type = str;
# };
# package = mkOption {
# description = "gtk icon theme package";
# type = package;
# };
# };
# };
# };
};
config = mkIf cfg.enable {
home-manager.users.${username} = {
gtk = {
enable = true;
# theme = {
# package = pkgs.gruvbox-gtk-theme;
# name = "Gruvbox-Dark-BL";
# };
iconTheme = {
name = "Papirus-Dark";
package = pkgs.catppuccin-papirus-folders;
};
};
home.sessionVariables = {
#GTK_THEME = "Gruvbox-Dark-BL";
# GTK_USE_PORTAL = "1";
};
};
};
}

View file

@ -1,59 +0,0 @@
{
config,
lib,
pkgs,
...
}:
with lib; let
theme = {
package = pkgs.gruvbox-gtk-theme;
name = "Gruvbox-Dark-BL";
};
cfg = config.modules.theming.qt;
inherit (config.modules.other.system) username;
in {
options.modules.theming.qt = {
enable = mkEnableOption "qt theming";
name = mkOption {
description = "qt theme name";
type = types.str;
};
variant = mkOption {
description = "qt theme variant";
type = types.str;
};
accentColour = mkOption {
description = "accent colour for qt theme";
type = types.str;
};
package = mkOption {
description = "qt theme package";
type = types.package;
};
};
config = mkIf cfg.enable {
environment.sessionVariables = {QT_QPA_PLATFORMTHEME = "qt5ct";};
environment.variables = {
QT_STYLE_OVERRIDE = lib.mkForce "kvantum";
GTK_THEME = theme.name;
};
home-manager.users.${username} = {
qt = {
enable = true;
# style = {
# inherit (cfg) name package;
# };
};
home = {
packages = with pkgs; [
qt5.qttools
libsForQt5.qt5ct
libsForQt5.qtstyleplugin-kvantum
breeze-icons
];
};
};
};
}

View file

@ -161,7 +161,7 @@ in {
security = {
sanitizeOnShutdown = false;
sandbox = true;
sandbox = false;
noSessionRestore = false;
userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0";
};
@ -173,14 +173,14 @@ in {
# taken from diniamo
settings = {
# "gfx.webrender.all" = true;
# "media.ffmpeg.vaapi.enabled" = true;
"gfx.webrender.all" = true;
"media.ffmpeg.vaapi.enabled" = true;
# "media.rdd-ffmpeg.enabled" = true;
# "media.av1.enabled" = true;
# "gfx.x11-egl.force-enabled" = true;
# "widget.dmabuf.force-enabled" = true;
# "layers.acceleration.force-enabled" = true;
"layers.acceleration.force-enabled" = true;
"browser.ctrlTab.sortByRecentlyUsed" = true;
# This makes websites prefer a dark theme (in theory)

View file

@ -5,7 +5,6 @@
...
}:
with lib; let
inherit (config.modules.other.system) username;
cfg = config.modules.programs.steam;
in {
options.modules.programs.steam = {
@ -16,15 +15,13 @@ in {
config = mkIf cfg.enable {
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
# remotePlay.openFirewall = true;
# dedicatedServer.openFirewall = true;
gamescopeSession.enable = mkIf cfg.gamescope true;
extraCompatPackages = with pkgs; [proton-ge-bin];
};
# See
# https://wiki.nixos.org/wiki/GameMode
programs.gamemode.enable = true;
# environment.systemPackages = [pkgs.protonup-ng];
environment.sessionVariables = {
STEAM_EXTRA_COMPAT_TOOLS_PATHS = "/home/${username}/.steam/root/compatibilitytoolds.d";
};
};
}