Updated emacs to wayland
This commit is contained in:
parent
fa1edc0995
commit
6b248c9097
4 changed files with 64 additions and 38 deletions
|
|
@ -7,19 +7,33 @@
|
||||||
username,
|
username,
|
||||||
inputs,
|
inputs,
|
||||||
...
|
...
|
||||||
}: let
|
}:
|
||||||
in {
|
let
|
||||||
|
in
|
||||||
|
{
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
./modules/fastfetch
|
./modules/fastfetch
|
||||||
./modules/tmux/home.nix
|
./modules/tmux/home.nix
|
||||||
]
|
]
|
||||||
++ lib.optional (hwconfig.useImpermanence) (import ./modules/impermanence/home.nix {
|
++ lib.optional (hwconfig.useImpermanence) (
|
||||||
inherit username;
|
import ./modules/impermanence/home.nix {
|
||||||
inherit inputs;
|
inherit username;
|
||||||
})
|
inherit inputs;
|
||||||
++ lib.optional (config.programs.hyprland.enable) ./modules/hyprland/home.nix
|
}
|
||||||
++ lib.optional (builtins.pathExists ./homes/${username}) (import ./homes/${username} {inherit username;});
|
)
|
||||||
|
++ lib.optional (config.programs.hyprland.enable) (
|
||||||
|
import ./modules/hyprland/home.nix {
|
||||||
|
inherit pkgs;
|
||||||
|
inherit username;
|
||||||
|
inherit inputs;
|
||||||
|
inherit hwconfig;
|
||||||
|
inherit lib;
|
||||||
|
}
|
||||||
|
)
|
||||||
|
++ lib.optional (builtins.pathExists ./homes/${username}) (
|
||||||
|
import ./homes/${username} { inherit username; }
|
||||||
|
);
|
||||||
# Home Manager needs a bit of information about you and the paths it should
|
# Home Manager needs a bit of information about you and the paths it should
|
||||||
# manage.
|
# manage.
|
||||||
home.username = username;
|
home.username = username;
|
||||||
|
|
|
||||||
|
|
@ -4,20 +4,21 @@
|
||||||
lib,
|
lib,
|
||||||
inputs,
|
inputs,
|
||||||
...
|
...
|
||||||
}: let
|
}:
|
||||||
emacs = pkgs.emacs; #pkgs.emacs-pgtk;
|
let
|
||||||
in {
|
emacs = pkgs.emacs-pgtk; # pkgs.emacs; #pkgs.emacs-pgtk;
|
||||||
|
in
|
||||||
|
{
|
||||||
#services.emacs.enable = true;
|
#services.emacs.enable = true;
|
||||||
services.emacs.startWithGraphical = true;
|
services.emacs.startWithGraphical = true;
|
||||||
#services.emacs.install = true;
|
#services.emacs.install = true;
|
||||||
services.emacs.package = emacs; #pkgs.emacs-unstable
|
services.emacs.package = emacs; # pkgs.emacs-unstable
|
||||||
|
|
||||||
environment.systemPackages =
|
environment.systemPackages =
|
||||||
(import ./packages.nix {
|
(import ./packages.nix {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
inherit emacs;
|
inherit emacs;
|
||||||
})
|
}).packages;
|
||||||
.packages;
|
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
inputs.emacs-overlay.overlays.default
|
inputs.emacs-overlay.overlays.default
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,18 @@
|
||||||
{ ... }:
|
|
||||||
{
|
{
|
||||||
imports = [
|
pkgs,
|
||||||
./hyprland.nix
|
username,
|
||||||
#../kando
|
lib,
|
||||||
];
|
hwconfig,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
(import ./hyprland.nix {
|
||||||
|
inherit pkgs;
|
||||||
|
inherit lib;
|
||||||
|
inherit hwconfig;
|
||||||
|
inherit username;
|
||||||
|
})
|
||||||
|
#../kando
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,10 +4,12 @@
|
||||||
hwconfig,
|
hwconfig,
|
||||||
username,
|
username,
|
||||||
...
|
...
|
||||||
}: let
|
}:
|
||||||
|
let
|
||||||
toggle_monitors = ./toggle_monitors.sh;
|
toggle_monitors = ./toggle_monitors.sh;
|
||||||
wallpaper-image = ./wallpaper.jpg;
|
wallpaper-image = ./wallpaper.jpg;
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./waybar.nix
|
./waybar.nix
|
||||||
./hyprlock.nix
|
./hyprlock.nix
|
||||||
|
|
@ -18,15 +20,15 @@ in {
|
||||||
xwayland.enable = true;
|
xwayland.enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
monitor =
|
monitor =
|
||||||
if hwconfig.hostname == "kylekrein-homepc"
|
if hwconfig.hostname == "kylekrein-homepc" then
|
||||||
then [
|
[
|
||||||
"DP-1,2560x1440@75,1600x0,1.6"
|
"DP-1,2560x1440@75,1600x0,1.6"
|
||||||
"DP-3,2560x1440@75,0x0,1.6"
|
"DP-3,2560x1440@75,0x0,1.6"
|
||||||
]
|
]
|
||||||
else
|
else
|
||||||
[",highres,auto,1.6"]
|
[ ",highres,auto,1.6" ]
|
||||||
++ [
|
++ [
|
||||||
"FALLBACK,1920x1080@60,auto,1" #to fix crash on hyprlock https://github.com/hyprwm/hyprlock/issues/434#issuecomment-2341710088
|
"FALLBACK,1920x1080@60,auto,1" # to fix crash on hyprlock https://github.com/hyprwm/hyprlock/issues/434#issuecomment-2341710088
|
||||||
];
|
];
|
||||||
|
|
||||||
xwayland = {
|
xwayland = {
|
||||||
|
|
@ -34,18 +36,14 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
exec-once = [
|
exec-once = [
|
||||||
"${
|
"${if hwconfig.isLaptop then "brightnessctl set 25%" else ""}"
|
||||||
if hwconfig.isLaptop
|
|
||||||
then "brightnessctl set 25%"
|
|
||||||
else ""
|
|
||||||
}"
|
|
||||||
"dbus-update-activation-environment --systemd --all"
|
"dbus-update-activation-environment --systemd --all"
|
||||||
"${pkgs.waybar}/bin/waybar &"
|
"${pkgs.waybar}/bin/waybar &"
|
||||||
"${pkgs.networkmanagerapplet}/bin/nm-applet &"
|
"${pkgs.networkmanagerapplet}/bin/nm-applet &"
|
||||||
"${pkgs.swaynotificationcenter}/bin/swaync &"
|
"${pkgs.swaynotificationcenter}/bin/swaync &"
|
||||||
"${pkgs.solaar}/bin/solaar -w hide &"
|
"${pkgs.solaar}/bin/solaar -w hide &"
|
||||||
#"${pkgs.hypridle}/bin/hypridle &"
|
#"${pkgs.hypridle}/bin/hypridle &"
|
||||||
"${pkgs.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1 &" #https://nixos.wiki/wiki/Polkit
|
"${pkgs.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1 &" # https://nixos.wiki/wiki/Polkit
|
||||||
"${pkgs.clipse}/bin/clipse -listen &"
|
"${pkgs.clipse}/bin/clipse -listen &"
|
||||||
"${pkgs.swww}/bin/swww-daemon &"
|
"${pkgs.swww}/bin/swww-daemon &"
|
||||||
"${pkgs.swww}/bin/swww img ${wallpaper-image} &"
|
"${pkgs.swww}/bin/swww img ${wallpaper-image} &"
|
||||||
|
|
@ -58,12 +56,14 @@ in {
|
||||||
"$mod" = "SUPER";
|
"$mod" = "SUPER";
|
||||||
"$mainMod" = "$mod";
|
"$mainMod" = "$mod";
|
||||||
"$terminal" = "${pkgs.kitty}/bin/kitty";
|
"$terminal" = "${pkgs.kitty}/bin/kitty";
|
||||||
"$fileManager" = "$terminal ${pkgs.yazi}/bin/yazi";
|
"$emacs" = "emacsclient -c -a 'emacs'";
|
||||||
|
"$fileManager" = "$emacs --eval '(dired \"/home/${username}\")'"; # "$terminal ${pkgs.yazi}/bin/yazi";
|
||||||
"$fileManager2" = "${pkgs.kdePackages.dolphin}/bin/dolphin";
|
"$fileManager2" = "${pkgs.kdePackages.dolphin}/bin/dolphin";
|
||||||
"$browser" = "${pkgs.firefox}/bin/firefox";
|
"$browser" = "${pkgs.firefox}/bin/firefox";
|
||||||
"$menu" = "${pkgs.wofi}/bin/wofi --show drun";
|
"$menu" = "${pkgs.wofi}/bin/wofi --show drun";
|
||||||
"$clipboardManager" = "$terminal --class clipse -e 'clipse'";
|
"$clipboardManager" = "$terminal --class clipse -e 'clipse'";
|
||||||
"$makeRegionScreenshot" = "${pkgs.grim}/bin/grim -g \"$(${pkgs.slurp}/bin/slurp -w 0)\" - | ${pkgs.satty}/bin/satty --early-exit --copy-command 'wl-copy' --filename '-' --initial-tool brush";
|
"$makeRegionScreenshot" =
|
||||||
|
"${pkgs.grim}/bin/grim -g \"$(${pkgs.slurp}/bin/slurp -w 0)\" - | ${pkgs.satty}/bin/satty --early-exit --copy-command 'wl-copy' --filename '-' --initial-tool brush";
|
||||||
bind = [
|
bind = [
|
||||||
"$mod, T, exec, $terminal"
|
"$mod, T, exec, $terminal"
|
||||||
"$mod, Q, killactive,"
|
"$mod, Q, killactive,"
|
||||||
|
|
@ -123,7 +123,7 @@ in {
|
||||||
"$mainMod, P, exec, $makeRegionScreenshot"
|
"$mainMod, P, exec, $makeRegionScreenshot"
|
||||||
"$mainMod ALT, L, exec, ${pkgs.hyprlock}/bin/hyprlock"
|
"$mainMod ALT, L, exec, ${pkgs.hyprlock}/bin/hyprlock"
|
||||||
|
|
||||||
''$mainMod, E, exec, emacsclient -c -a "send-notify 'Unable to launch Emacs. Daemon is not running'"''
|
''$mainMod, E, exec, $emacs''
|
||||||
];
|
];
|
||||||
|
|
||||||
bindm = [
|
bindm = [
|
||||||
|
|
@ -153,7 +153,7 @@ in {
|
||||||
#"GDK_SCALE,1.6"
|
#"GDK_SCALE,1.6"
|
||||||
#"QT_SCALE_FACTOR,1.6"
|
#"QT_SCALE_FACTOR,1.6"
|
||||||
|
|
||||||
"GSK_RENDERER,ngl" #for satty until https://github.com/NixOS/nixpkgs/issues/359069 is fixed
|
"GSK_RENDERER,ngl" # for satty until https://github.com/NixOS/nixpkgs/issues/359069 is fixed
|
||||||
];
|
];
|
||||||
|
|
||||||
cursor = {
|
cursor = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue