ezpc system module
This commit is contained in:
parent
f8e4aadcd5
commit
ce74f30025
@ -384,15 +384,6 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
home.sessionVariables = {
|
|
||||||
QT_QPA_PLATFORM = "wayland-egl;xcb";
|
|
||||||
MOZ_ENABLE_WAYLAND = "1";
|
|
||||||
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
|
|
||||||
ECORE_EVAS_ENGINE = "wayland_egl";
|
|
||||||
ELM_ENGINE = "wayland_egl";
|
|
||||||
_JAVA_AWT_WM_NONREPARENTING = "1";
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.firefox.enable = true;
|
programs.firefox.enable = true;
|
||||||
|
|
||||||
programs.waybar = {
|
programs.waybar = {
|
||||||
|
39
modules/ezpc.nix
Normal file
39
modules/ezpc.nix
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
with lib; let
|
||||||
|
cfg = config.ezpc;
|
||||||
|
in {
|
||||||
|
options.ezpc.enable = mkEnableOption "Enable ezpc system stuff";
|
||||||
|
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
xdg.portal.enable = lib.mkDefault true;
|
||||||
|
xdg.portal.extraPortals = lib.mkDefault (with pkgs; [
|
||||||
|
xdg-desktop-portal-wlr
|
||||||
|
xdg-desktop-portal-gtk
|
||||||
|
]);
|
||||||
|
|
||||||
|
environment.sessionVariables = {
|
||||||
|
QT_QPA_PLATFORM = "wayland-egl;xcb";
|
||||||
|
MOZ_ENABLE_WAYLAND = "1";
|
||||||
|
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
|
||||||
|
ECORE_EVAS_ENGINE = "wayland_egl";
|
||||||
|
ELM_ENGINE = "wayland_egl";
|
||||||
|
_JAVA_AWT_WM_NONREPARENTING = "1";
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.loginShellInit = lib.mkAfter ''
|
||||||
|
[[ "$(tty)" == /dev/tty1 ]] && {
|
||||||
|
sway
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
|
||||||
|
i18n.inputMethod = {
|
||||||
|
enabled = "ibus";
|
||||||
|
ibus.engines = with pkgs.ibus-engines; [typing-booster uniemoji];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user