Sleep changed, added headphones command.

This commit is contained in:
2025-09-23 09:49:08 +03:00
parent a98e77d41a
commit 5d15135670
8 changed files with 61 additions and 10 deletions
Generated
+4 -4
View File
@@ -6,11 +6,11 @@
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
}, },
"locked": { "locked": {
"lastModified": 1754648724, "lastModified": 1758608822,
"narHash": "sha256-rkv5hNteekFonbSBkIlCoRZfOD3QzWkI6iBBstDI2eU=", "narHash": "sha256-m9zuMl7NfSbF7sAbq2t7m6vCwvHQKJvLoZlWRTVPuy0=",
"ref": "refs/heads/master", "ref": "refs/heads/master",
"rev": "0cdc3208f2aaa233c837c968583a79d45b968899", "rev": "6da8a30fa02eab522470962bab2474270bf7a013",
"revCount": 57, "revCount": 60,
"type": "git", "type": "git",
"url": "file:./azos-core" "url": "file:./azos-core"
}, },
+1
View File
@@ -11,5 +11,6 @@
./reaper.nix ./reaper.nix
./discord.nix ./discord.nix
./spotify.nix ./spotify.nix
./headphones-whmx4000.nix
]; ];
} }
+23
View File
@@ -0,0 +1,23 @@
{
lib,
config,
pkgs,
...
}: let
isEnabled =
config.azos.headphones-whmx4000.enable;
in {
options.azos.headphones-whmx4000.enable = lib.mkOption {
default = true;
example = true;
type = lib.types.bool;
};
config = lib.mkIf isEnabled {
home.packages = with pkgs; [
( pkgs.writeShellScriptBin
"azos-connect-headphones-whmx4000"
"echo \"connect AC:80:0A:AF:E1:C2\" | bluetoothctl" )
];
};
}
+5
View File
@@ -106,5 +106,10 @@
services.upower.enable = true; services.upower.enable = true;
programs.light.enable = true; programs.light.enable = true;
systemd.targets.sleep.enable = false;
systemd.targets.suspend.enable = false;
systemd.targets.hibernate.enable = false;
systemd.targets.hybrid-sleep.enable = false;
system.stateVersion = "24.11"; # Did you read the comment? system.stateVersion = "24.11"; # Did you read the comment?
} }
+10
View File
@@ -46,4 +46,14 @@
#Oh my god disable sleep on lid closed #Oh my god disable sleep on lid closed
services.logind.lidSwitchExternalPower = "ignore"; services.logind.lidSwitchExternalPower = "ignore";
systemd.sleep.extraConfig = ''
[Sleep]
AllowSuspend=yes
AllowHibernation=no
AllowSuspendThenHibernate=no
'';
systemd.targets.sleep.enable = false;
systemd.targets.suspend.enable = false;
systemd.targets.hibernate.enable = false;
systemd.targets.hybrid-sleep.enable = false;
} }
+1 -1
View File
@@ -10,6 +10,6 @@ orgTrivialBuild {
packageRequires = with epkgs; [ packageRequires = with epkgs; [
pkgs.azos-emacs-base pkgs.azos-emacs-base
pkgs.azos-emacs-station pkgs.azos-emacs-station
llm gptel
]; ];
} }
+16 -4
View File
@@ -13,10 +13,22 @@
** LLM ** LLM
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package llm-refactoring (use-package gptel
:init :config
(require 'llm-openai) (setq
(setq llm-refactoring-provider (make-llm-openai :key "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"))) gptel-model "openai/gpt-oss-120b"
gptel-backend
(gptel-make-openai "Groq"
:host "api.groq.com"
:endpoint "/openai/v1/chat/completions"
:stream t
:key "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"
:models '("openai/gpt-oss-120b")))
:hook
(gptel-mode . (lambda ()
(setq-local whitespace-style '(face tabs trailing tab-mark
indentation))))
)
#+end_src #+end_src
* Provide * Provide