Update simple-osd-daemons
This commit is contained in:
parent
8932d8763b
commit
6d0c74ab7f
6
flake.lock
generated
6
flake.lock
generated
@ -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": {
|
||||
|
@ -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
|
||||
'';
|
||||
|
@ -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%";
|
||||
};
|
||||
});
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user