From 11e1339249bda7d61fedfdecc39b379f4bdafcad Mon Sep 17 00:00:00 2001 From: Liam Malone Date: Mon, 6 Oct 2025 15:09:39 +0100 Subject: [PATCH] add emacsd on hyprstartup. fix (?) desktop sleep --- configs/hypr-desktop/hyprland.conf | 1 + hosts/desktop/configuration.nix | 4 +++- hosts/desktop/pkgs.nix | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/configs/hypr-desktop/hyprland.conf b/configs/hypr-desktop/hyprland.conf index 16e940c..05c492b 100644 --- a/configs/hypr-desktop/hyprland.conf +++ b/configs/hypr-desktop/hyprland.conf @@ -1,6 +1,7 @@ # Startup exec-once= bash -c "wl-paste --watch cliphist store &" exec-once= fcitx5 -d +exec-once= emacs --daemon exec-once= dms run # DankShell # Monitors diff --git a/hosts/desktop/configuration.nix b/hosts/desktop/configuration.nix index 02f0027..89b0b0c 100644 --- a/hosts/desktop/configuration.nix +++ b/hosts/desktop/configuration.nix @@ -117,8 +117,10 @@ nvidia = { modesetting.enable = true; powerManagement.enable = true; - open = true; + + open = false; nvidiaSettings = true; + package = config.boot.kernelPackages.nvidiaPackages.latest; }; }; diff --git a/hosts/desktop/pkgs.nix b/hosts/desktop/pkgs.nix index 6d72091..e747e88 100644 --- a/hosts/desktop/pkgs.nix +++ b/hosts/desktop/pkgs.nix @@ -81,6 +81,7 @@ else export PS1='\[\e[1;m\e[1;33m\e[1;m\] \W\[\e[m\e[m\] 🐧 \[\e[1;32m\]~> \[\e[m\e[m\]' fi; + export PATH="$HOME/.local/bin:$PATH" set -o vi fastfetch ''; @@ -103,6 +104,7 @@ ping = "ping -c 5"; vi = "\\vim"; work = "nix develop --impure"; + hyprLockRestore = "hyprctl --instance $1 'keyword misc:allow_session_lock_restore 1' && dms ipc call lock lock"; ".." = "cd .."; }; };