mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 23:00:14 +01:00
Compare commits
4 commits
077d1881d1
...
584b7b8cbc
| Author | SHA1 | Date | |
|---|---|---|---|
| 584b7b8cbc | |||
| 9d664b263f | |||
| c73813d5c4 | |||
| e50835d259 |
3 changed files with 32 additions and 6 deletions
6
flake.lock
generated
6
flake.lock
generated
|
|
@ -1076,11 +1076,11 @@
|
||||||
"nixvim": "nixvim_2"
|
"nixvim": "nixvim_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1745488060,
|
"lastModified": 1748338979,
|
||||||
"narHash": "sha256-uRx4RuG6T3VocL7JJt70ubUZ7GbO0o1hj/oCQww4SDA=",
|
"narHash": "sha256-cu/DVvQZRKVmI9rqEygXPW0xjR0BEqSgzH2Ay9ZYHVw=",
|
||||||
"owner": "ahwxorg",
|
"owner": "ahwxorg",
|
||||||
"repo": "nixvim-config",
|
"repo": "nixvim-config",
|
||||||
"rev": "bc425153ed9c4e54df3965e7a5bba54aa1fd73fa",
|
"rev": "fc0d965d9bbd98047f777cb31e5b0708cd958956",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,14 @@
|
||||||
inputs.nixos-hardware.nixosModules.framework-13-7040-amd
|
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 = {
|
liv = {
|
||||||
laptop.enable = true;
|
laptop.enable = true;
|
||||||
|
|
@ -24,7 +31,6 @@
|
||||||
gui.enable = true;
|
gui.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [ fwupd ];
|
|
||||||
hardware.framework = {
|
hardware.framework = {
|
||||||
amd-7040.preventWakeOnAC = true;
|
amd-7040.preventWakeOnAC = true;
|
||||||
laptop13.audioEnhancement.enable = true;
|
laptop13.audioEnhancement.enable = true;
|
||||||
|
|
@ -38,11 +44,30 @@
|
||||||
# powertop.enable = true;
|
# powertop.enable = true;
|
||||||
cpuFreqGovernor = lib.mkDefault "ondemand";
|
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 = {
|
boot = {
|
||||||
plymouth.enable = true;
|
plymouth.enable = true;
|
||||||
kernelParams = [
|
kernelParams = [
|
||||||
"mem_sleep_default=deep"
|
"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" ];
|
kernelModules = [ "acpi_call" ];
|
||||||
kernelPackages = pkgs.linuxPackages_latest;
|
kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,7 @@
|
||||||
"docker"
|
"docker"
|
||||||
"input"
|
"input"
|
||||||
"gay"
|
"gay"
|
||||||
|
"dialout"
|
||||||
];
|
];
|
||||||
shell = pkgs.zsh;
|
shell = pkgs.zsh;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue