Update simple-osd-daemons

This commit is contained in:
Alexander Bantyev 2021-02-28 19:03:06 +03:00
parent 8932d8763b
commit 6d0c74ab7f
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5
3 changed files with 20 additions and 4 deletions

6
flake.lock generated
View File

@ -407,11 +407,11 @@
"nixpkgs": "nixpkgs_6"
},
"locked": {
"lastModified": 1614270718,
"narHash": "sha256-BsGAfotqzSzEsTBeknA3i9KQafZZJee/SqKDSYJLyns=",
"lastModified": 1614291666,
"narHash": "sha256-mLuMxIRD4X8WSEUZOGRS8n37cCx1EGgWStHrkqvfgmk=",
"owner": "balsoft",
"repo": "simple-osd-daemons",
"rev": "bf163cef869dc09afaff1d4c5cfc1ce89eeb761d",
"rev": "da45ed188ca6d731d2143d6018accb8ebc97ff24",
"type": "github"
},
"original": {

View File

@ -1,4 +1,4 @@
{ inputs, ... }: {
{ inputs, lib, config, ... }: {
imports = [ ./hardware-configuration.nix inputs.self.nixosProfiles.desktop ];
deviceSpecific.devInfo = {
cpu = {
@ -13,6 +13,12 @@
};
ram = 16;
};
home-manager.users.balsoft.xdg.configFile."simple-osd/brightness".text = (import ../../support.nix { inherit lib config; }).genIni {
default = {
"backlight backend" = "/sys/class/backlight/intel_backlight";
"refresh interval" = 100;
};
};
boot.extraModprobeConfig = ''
options iwlwifi bt_coex_active=0
'';

View File

@ -23,5 +23,15 @@ in {
xdg.configFile."simple-osd/common".text = genIni {
progressbar.length = 25;
};
xdg.configFile."simple-osd/battery".text = lib.mkIf (config.deviceSpecific.isLaptop) (genIni {
default = {
"refresh interval" = 1;
"show battery charge" = true;
};
threshold = {
low = "20%";
critical = "10%";
};
});
};
}