this should work

This commit is contained in:
Sakooooo 2024-02-04 18:25:09 +04:00
parent d8dc0fcdcd
commit 3744c51ae1
Signed by: sako
GPG key ID: 3FD715D87D7725E0

View file

@ -8,12 +8,17 @@
}: }:
with lib; let with lib; let
cfg = config.modules.desktop.exwm; cfg = config.modules.desktop.exwm;
imports = [
../../dev/editors/emacs
];
in { in {
options.modules.desktop.exwm = { options.modules.desktop.exwm = {
enable = mkEnableOption false; enable = mkEnableOption false;
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
modules.dev.editors.emacs.daemon = lib.mkForce false;
modules.dev.editors.emacs.enable = true;
# this needs to be enabled for gtk apps # this needs to be enabled for gtk apps
programs.dconf.enable = true; programs.dconf.enable = true;
# https://nixos.wiki/wiki/XMonad # https://nixos.wiki/wiki/XMonad
@ -24,8 +29,8 @@ in {
# }; # };
# TODO FIX THIS !!!!!! # TODO FIX THIS !!!!!!
displayManager.session = let windowManager.session = let
# Allow for per-host injected desktop-related Emacs configuration. # dpi thing ill figure out later
# extraConfig = pkgs.writeText "emacs-extra-config" '' # extraConfig = pkgs.writeText "emacs-extra-config" ''
# (setq mb/system-settings # (setq mb/system-settings
# '((desktop/dpi . ${(toString cfg.dpi)}) # '((desktop/dpi . ${(toString cfg.dpi)})
@ -35,7 +40,7 @@ in {
# else "nil" # else "nil"
# }))) # })))
# ''; # '';
extraConfig = pkgs.writeText "emacs-extra-config" '' extraConfig = pkgs.writeText "emacs-loadscript" ''
(require 'exwm-config) (require 'exwm-config)
(exwm-config-default) (exwm-config-default)
(exwm-enable) (exwm-enable)
@ -92,8 +97,8 @@ in {
flameshot flameshot
]; ];
environment.systemPackages = with pkgs; [ # environment.systemPackages = with pkgs; [
]; # ];
home-manager.users.sako = {pkgs, ...}: { home-manager.users.sako = {pkgs, ...}: {
home.pointerCursor = { home.pointerCursor = {