Personal-NixOS-Configuration/modules/nixos/cspark-desktop-ewm/home.nix

61 lines
1.7 KiB
Nix

{ lib, config, pkgs, modulesPath, inputs, ... }:
let
cfg = config.cspark-desktop-ewm-config-1;
in
{
options.cspark-desktop-ewm-config-1 = {
enable
= lib.mkEnableOption "Enable Custom EWM Desktop Setup 1";
};
config = lib.mkIf cfg.enable {
services.gpg-agent = {
pinentryPackage = pkgs.pinentry-qt;
};
# Config Files (typically $HOME/.config)
xdg.configFile = {
"vesktop/themes".source = ./resources/home-manager/.config/vesktop/themes;
"gtk-4.0".source = ./resources/home-manager/.config/gtk-4.0;
"gtk-3.0".source = ./resources/home-manager/.config/gtk-3.0;
};
home.file = {
".gtkrc-2.0".source = ./resources/home-manager/.gtkrc-2.0;
".icons".source = ./resources/home-manager/.icons;
".themes".source = ./resources/home-manager/.themes;
};
services.udiskie.enable = true;
services.udiskie.tray = "never";
# Automatically executed on ewm startup
home.packages = with pkgs; [
gcr
];
home.sessionVariables = {
QT_QPA_PLATFORMTHEME = "qt6ct";
SDL_VIDEODRIVER = "wayland,x11,windows";
_JAVA_AWT_WM_NONREPARENTING = "1";
SSH_ASKPASS_REQUIRE = "force";
SSH_ASKPASS = "/run/current-system/sw/bin/lxqt-openssh-askpass";
GTK_THEME = "Gruvbox-BL-MB-Light-Soft";
};
#programs.bash = {
# initExtra = ''
# export DISPLAY=":0"
# '';
#};
# Start sway after login if on TTY1 (Default Linux TTY upon boot/login)
#programs.bash.profileExtra = ''
# if [[ $(tty) == "/dev/tty1" ]]; then
# niri-session
# exit
# fi
# '';
};
}