From e50835d2598d2b2a95be9cffd3cc50e3c3fca790 Mon Sep 17 00:00:00 2001 From: Ahwx Date: Tue, 27 May 2025 19:21:17 +0200 Subject: [PATCH 1/4] feat: adds sleep indicator --- hosts/sakura/default.nix | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/hosts/sakura/default.nix b/hosts/sakura/default.nix index aca59ab..b503fee 100644 --- a/hosts/sakura/default.nix +++ b/hosts/sakura/default.nix @@ -38,11 +38,30 @@ # powertop.enable = true; cpuFreqGovernor = lib.mkDefault "ondemand"; }; + # change battery led to blue on suspend to indicate device is in suspend mode + systemd.services."suspend-led-set" = { + description = "blue led for sleep"; + wantedBy = [ "suspend.target" ]; + before = [ "systemd-suspend.service" ]; + serviceConfig.type = "simple"; + script = '' + ${pkgs.fw-ectool}/bin/ectool led battery blue + ''; + }; + systemd.services."suspend-led-unset" = { + description = "auto led after sleep"; + wantedBy = [ "suspend.target" ]; + after = [ "systemd-suspend.service" ]; + serviceConfig.type = "simple"; + script = '' + ${pkgs.fw-ectool}/bin/ectool led battery auto + ''; + }; boot = { plymouth.enable = true; kernelParams = [ "mem_sleep_default=deep" - "acpi_osi=\"!Windows 2020\"" + "acpi_osi=\"!Windows 2020\"" # otherwise GPU does weird shit that makes the computer look like the RAM is broken ]; kernelModules = [ "acpi_call" ]; kernelPackages = pkgs.linuxPackages_latest; From c73813d5c457325ca2744dad3b5225d7b8da80d2 Mon Sep 17 00:00:00 2001 From: Ahwx Date: Tue, 27 May 2025 19:24:57 +0200 Subject: [PATCH 2/4] feat: make config more uniform --- hosts/sakura/default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/hosts/sakura/default.nix b/hosts/sakura/default.nix index b503fee..8b81c17 100644 --- a/hosts/sakura/default.nix +++ b/hosts/sakura/default.nix @@ -14,7 +14,14 @@ inputs.nixos-hardware.nixosModules.framework-13-7040-amd ]; - environment.etc.hosts.mode = "0700"; + # install some system-utilities; set hosts to be editable by the user. + environment = { + systemPackages = with pkgs; [ + fwupd + fw-ectool + ]; + etc.hosts.mode = "0700"; + }; liv = { laptop.enable = true; @@ -24,7 +31,6 @@ gui.enable = true; }; - environment.systemPackages = with pkgs; [ fwupd ]; hardware.framework = { amd-7040.preventWakeOnAC = true; laptop13.audioEnhancement.enable = true; From 9d664b263fadfb191c0645c552b47479afb8c48f Mon Sep 17 00:00:00 2001 From: Ahwx Date: Tue, 27 May 2025 19:25:30 +0200 Subject: [PATCH 3/4] feat: adds user to dialout group for lora node reasons --- modules/core/user.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/core/user.nix b/modules/core/user.nix index ee3ecce..30222ca 100644 --- a/modules/core/user.nix +++ b/modules/core/user.nix @@ -49,6 +49,7 @@ "docker" "input" "gay" + "dialout" ]; shell = pkgs.zsh; }; From 584b7b8cbcbffb749e159d437e15cea272fa5521 Mon Sep 17 00:00:00 2001 From: Ahwx Date: Tue, 27 May 2025 19:25:42 +0200 Subject: [PATCH 4/4] flake: update (nixvim) --- flake.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flake.lock b/flake.lock index a61bf0e..2452c64 100644 --- a/flake.lock +++ b/flake.lock @@ -1076,11 +1076,11 @@ "nixvim": "nixvim_2" }, "locked": { - "lastModified": 1745488060, - "narHash": "sha256-uRx4RuG6T3VocL7JJt70ubUZ7GbO0o1hj/oCQww4SDA=", + "lastModified": 1748338979, + "narHash": "sha256-cu/DVvQZRKVmI9rqEygXPW0xjR0BEqSgzH2Ay9ZYHVw=", "owner": "ahwxorg", "repo": "nixvim-config", - "rev": "bc425153ed9c4e54df3965e7a5bba54aa1fd73fa", + "rev": "fc0d965d9bbd98047f777cb31e5b0708cd958956", "type": "github" }, "original": {